Google Tag Manager
The fastest and most flexible way to install Clickyard. Perfect for teams that already use GTM for analytics and marketing tools.
Prerequisites
- Google Tag Manager installed on your website
- Access to your GTM container
- Clickyard account with a website added
Installation Steps
1 Get Your Tracking Code
Go to your Clickyard dashboard, find your website, and click the "Widget code" button to copy your tracking code.
Your tracking code will look like this:
<script src="https://s.clickyard.ai/v1.js"></script>
<script>Clickyard.init({ id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' })</script>2 Open Google Tag Manager
Go to tagmanager.google.com and open your website's container.
3 Create a New Tag
- Click "Tags" in the left sidebar
- Click "New" button in the top right
- Click on "Tag Configuration"
- Select "Custom HTML" from the list
4 Paste the Tracking Code
Paste your Clickyard tracking code into the HTML field:
<script src="https://s.clickyard.ai/v1.js"></script>
<script>Clickyard.init({ id: 'YOUR-WEBSITE-ID' })</script>Important: Replace YOUR-WEBSITE-ID with your actual website ID from the dashboard.
5 Configure the Trigger
- Click on "Triggering" below the HTML field
- Select "All Pages" trigger
- This ensures Clickyard loads on every page of your website
Tip: If you only want to track specific pages, create a custom trigger with URL conditions.
6 Save and Name Your Tag
Give your tag a descriptive name like Clickyard - Tracking Script and click "Save".
7 Publish Your Changes
- Click "Submit" in the top right corner
- Add a version name (e.g., "Added Clickyard tracking")
- Click "Publish"
Done! Clickyard is now tracking your website. Visit your site to generate the first session.
Verify Installation
To confirm Clickyard is working correctly:
- Visit your website in a new browser tab
- Open browser Developer Tools (F12)
- Go to the Network tab
- Filter by
clickyard - You should see requests to
s.clickyard.ai
You can also check your Clickyard dashboard — session count should start increasing within a few minutes.
Troubleshooting
Script not loading?
Make sure you published the GTM container after adding the tag. Check the GTM Preview mode to debug.
No sessions appearing?
Disable ad blockers temporarily and check if the script is being blocked. Some privacy extensions block analytics scripts.