In This Article
You can connect LeadDyno to your website using Google Tag Manager (GTM) if you prefer not to edit your site’s source code directly. This method offers flexibility and ease of management for non-technical users.
Step 1: Retrieve Your Tracking Script
- Log in to your LeadDyno account.
- Navigate to Account > Utilities.
- From the new view, click the "Copy Code" button to copy the tracking script.
- The copy of your unique JavaScript tracking code looks something like this:
<script src="https://static.leaddyno.com/js"></script> <script> LeadDyno.key = "your-public-key"; LeadDyno.recordVisit(); LeadDyno.autoWatch(); </script>
Note: Replace "your-public-key"
with the actual public key shown in your account.
Step 2: Add LeadDyno Script to Google Tag Manager
- Log in to your Google Tag Manager account.
- Select your container for the website you want to connect.
- Go to Tags > New.
- Click on Tag Configuration, then choose Custom HTML.
- Paste your LeadDyno tracking code into the HTML box.
- Under Triggering, choose All Pages.
- Click Save, then Submit and Publish your container.
Your LeadDyno tracking script will now load on every page of your website via GTM.
Step 3: Verify Installation
- Visit your website in a browser (you may want to use an incognito/private window).
- Open your browser’s Developer Tools (usually F12 or right-click > Inspect).
- Go to the Network tab and look for any requests made to
leaddyno.com
.
This indicates that the tracking script has loaded successfully.
Alternatively, in your LeadDyno dashboard:
- Go to Account > Utilities and click on "Rescan Your Website" to check if the tracking code has been correctly added to your website.
- You can also test using a referral link to make sure affiliate attribution is working properly.
Troubleshooting
- Make sure your GTM container is published.
- If you're using a cookie banner or consent management tool, ensure it doesn't block the LeadDyno script.
- Do not include the script on multiple pages in multiple ways (e.g., GTM and hard-coded in HTML), as this may cause duplicate tracking.