All Collections
Reporting & Tracking
Conversion tracking
Implementing the Zemanta Pixel Using Google Tag Manager (Custom HTML)
Implementing the Zemanta Pixel Using Google Tag Manager (Custom HTML)
Updated over a week ago

Do you want to use the Zemanta Pixel without altering the HTML of your pages manually? If you use Google Tag Manager, you can implement our Zemanta Pixel directly from there.

Implementing the Zemanta Pixel

1. Navigate to the Google Tag Manager.

2. Select your website from the list and click on the Add a new tag button.

3. Give it a name (for example Zemanta Pixel), click on the Tag Configuration field and select the Custom HTML option.

4. Paste in the Zemanta Pixel code. You can find the code in the Engagement Tracking section within the Zemanta dashboard by clicking on the View tag button.

5. Remove the part between <noscript> and </noscript> with tagnames included.

6. Make sure that the Zemanta Pixel triggers on All Pages.


โ€‹

7. Click on the Save button.

PLEASE NOTE: You still need to define specific conversion definitions in the Zemanta dashboard. To learn more about conversion definitions, click here.

Implementing Event-Based Conversion Definitions

1. To implement event-based conversion definition JS snippet via Google Tag Manager, begin by clicking on the New Tag button again.

2. After giving the event-based conversion definition a custom name, head again to the Custom Tag Type and select the Custom HTML option.

Custom HTML

3. Go to the Conversions section within the Zemanta dashboard, find a previously added event-based conversion definition and copy the JS tag.

4. Paste the tag code into the field below.
โ€‹

For example, if you want to fire a conversion after a user visits a page, you can set it up like this:

5. Remove the part between <noscript> and </noscript> with tagnames included.

We do not recommend appending the additional code into the base code and triggering it on a specific action. This will cause a time lag from the action to the pixel fire, and you may experience inaccurate conversion data.

If you want to fire a conversion after a button has been clicked, follow the same steps above and choose All Elements as the trigger type. Have the trigger fire on Some clicks and enter the Click ID or Click Class that the action is associated with.

Did this answer your question?