Skip to main content

Eskimi Conversion Pixel Implementation on Action Button

On some occasions, you will need to implement a conversion registration when the user clicks a button. This can be done in a few easy steps.

Step 1

Initialize the base pixel.

Paste your base pixel code between your websites success page <body> </body> tags. And if the code is initialised in the <head> </head> tags then everything is set up.

Copy the base pixel from the DSP: choose Tracking and the DSP gives you the base pixel code. It tracks visits and sessions and collects retargeting audiences. It looks like this:

Tracking pixel in the DSP, showing the base pixel codeTracking pixel in the DSP, showing the base pixel code

The id in esk('init', ...) is unique for each advertiser account, so yoursit willis differ from the oneblurred in the screenshot.screenshots and yours will differ.

Step 2

For conversion tracking you need both pixels: the base pixel on every page of your website, and the conversion pixel where the conversion happens. In the DSP, tick Conversion under Tracking. The page then shows the base pixel code to paste on every page, and the conversion code to paste where the conversion is triggered:

Conversion pixel in the DSP, showing the base pixel code and the conversion codeConversion pixel in the DSP, showing the base pixel code and the conversion code

On the "Submit" button, add an onclick property to the button, with the attribute "esk ('track', 'Conversion');"

The button code should look like this

image-1610545174560.png

Now every time the button is clicked a successful conversion is registered. 

Don't forget to view the source code of the page.