Following other marketing platforms, LinkedIn also began to support server-side conversion tracking.
We’ve developed our own LinkedIn Conversion API tag for sGTM, which makes the setup way much simpler and intuitive than using the native one.
To set up LinkedIn Conversions API, you will need to configure a server GTM container. It is also preferable to use a custom domain, which allows you to set first-party cookies.
So firstly download the LinkedIn CAPI tag for the sGTM from Stape’s GitHub repository. Just in server GTM open the Templates section → click New in Tag Temport → Import → upload the template you downloaded from GitHub.
Or
Have it added from the server GTM Tag Gallery.
The tag itself is very easy to use, we’ve added the ability to enter explicit variables that will be reported to LinkedIn in a proper format. Tag configuration consists of the event types - PageView and Conversion events.
To send an event via LinkedIn CAPI you require an access token, a conversion rule ID and one of the 4 first party parameters LinkedIn requires you to send (hashed email, LinkedIn click ID value, Acxiom ID or Moat ID).
As already mentioned the process for obtaining CAPI access token has been greatly simplified - all you need to do now is the following:
Don’t forget to add the trigger for an event.
Below is the example of configured Linkedin Conversion API Tag:
LinkedIn web + CAPI event reporting is designed in a way commonly called “redundant event setup”. This means that you may report an event from the LinkedIn Insight tag and additionally via the LinkedIn CAPI tag. In order to avoid overreporting, you should send an identical event ID with the web and server event. The web event has a higher priority and will be counted as a conversion, and if the same conversion with the same event ID will be delivered via CAPI - such event will be discarded. Please be sure to handle this process properly for accurate conversion tracking.
1. Please make sure to use the latest version of the official LinkedIn Insight tag, that supports reporting of the event ID.
2. When you send a conversion through multiple methods, you need to create a conversion rule for each data source (browser and server). For the browser source - conversion rule ID will be available to you during the conversion creation process in the user interface.
3. To create a conversion that will be reported from the server GTM, please click Create conversion → Conversions API. On the Sources step, you may select Direct API integration. Once you are done, select the newly created conversion, and the Conversion Rule ID will be available to you in the URL right after conversions/
4. That’s pretty much it, make sure to add identical event_id sent from the web and any user data that is available for better event matching. li_fat_id cookie value will be automatically added to the payload if received in the incoming request cookie header.
5. To verify your setup, you may trigger your conversion event. The status for your conversions should change to “Active”. If your deduplication is properly set up, after a while you’ll see a message confirming it if you click on a status for the CAPI conversion.
With the recent updates introduced by LinkedIn and Stape’s server GTM tag, setting up the LinkedIn Conversion API became a much easier process. Adding conversion API will strengthen your existing web pixel tracking, providing additional resistance to adblockers and latest ITP changes, especially in conjunction with other Stape power-ups like Custom Loader, Cookie Keeper or Own CDN. And of course with LinkedIn CAPI you are also able to report offline conversion events, which may significantly help in measuring performance of your LinkedIn campaigns.
All it takes is a few simple steps. Click Try for Free , and configure your server Google tag Manager container with Stape in just 3 minutes.