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.
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.
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: