Image pixel conversion tracking (LinkedIn)

The code provided in this article can be used for any tracking pixel that is provided in the form of an image by the platform. The example below refers to LinkedIn. For other platforms, simply replace the highlighted LinkedIn pixel with your img format pixel.

 

In order to track conversions that happen on your Instapage experience inside your LinkedIn account, you will need to add the following pieces of code in the indicated places. 

The following code needs to be placed inside the HTML/CSS > Body section of the landing page (it must be placed before any other code from this article, as the order is important): 

 

Tracking form submissions as conversions:

Add the following code snippet in HTML/CSS > Body under the first block of code. Make sure to change the URL of the img pixel (highlighted below) with your own.

Screen_Shot_on_2020-09-23_at_09_35_05.png

NOTE: The "instapageFormSubmitSuccess" function can only be present on the page once, regardless of how many forms you have or how many actions you want to trigger after form submission. In case you have multiple snippets that need to fire after form submission, you must add all of them under the same Form Submit Callback function. If the snippets are not added under the same Form Submit Callback script, only the last function in the source code will be triggered.

 

Tracking button clicks as conversions:

Add the following code snippet in HTML/CSS > Body under the first block of code. You will need to edit the element ID of the button to match the ID of the particular button you are looking to track. Make sure to change the URL of the img pixel (highlighted below) with your own.

button_gif.gif

Screen_Shot_on_2020-09-23_at_09_35_21.png

 

This code allows for multiple elements to be tracked on the page. You will need to manually edit each code individually (form or button code), with your own image pixel code. The img pixel code needs to be inside quotation marks, just like in the example above.
For tracking more than one button, simply copy-paste the button tracking code and edit as needed.

The tracking script from Linkedin can be found in Account Assets >> Conversions.
The conversion type selected should be “Use an event-specific pixel to track when there is no unique URL (e.g. a button click)” as in this screenshot:

Screen_Shot_2020-08-13_at_15.33.00.png