{"id":4384,"date":"2020-06-04T17:12:27","date_gmt":"2020-06-04T14:12:27","guid":{"rendered":"https:\/\/trackingchef.com\/?p=4384"},"modified":"2022-08-08T11:28:41","modified_gmt":"2022-08-08T08:28:41","slug":"linkedin-ads-conversion-tracking","status":"publish","type":"post","link":"https:\/\/trackingchef.com\/google-tag-manager\/linkedin-ads-conversion-tracking\/","title":{"rendered":"LinkedIn Ads conversion tracking"},"content":{"rendered":"\n

When running a LinkedIn Ads campaign that is driving traffic to your site, you want to have conversion tracking in place in order to optimize your ad spend.<\/p>\n\n\n\n

Similar to other platforms, LinkedIn offers two types of conversion tracking:<\/p>\n\n\n\n

  1. URL Based, e.g. anyone who reached \/thanks<\/li>
  2. Event-Based, for user actions that don’t trigger a URL change<\/li><\/ol>\n\n\n\n

    As with other platforms, my first recommendation is to always try to have a Thank You Page (TYP). In many cases, I like to set up a generic TYP for all similar form submissions (e.g. all landing pages).<\/p>\n\n\n\n

    Pro tip:<\/strong>
    A TYP is also a great place to offer immediate follow up content, to keep the user engaged<\/p><\/blockquote>\n\n\n\n

    This method is more stable from a technical perspective, easier to measure across multiple platforms, and doesn’t require additional code, as it can be configured from inside the ad platforms.<\/p>\n\n\n\n

    In the case that you can’t redirect the users after the conversion, you will need to add a conversion event, which requires adding some extra code to the site. In this post, I’ll cover several methods to add these conversion events.<\/p>\n\n\n\n

    Creating a conversion in LinkedIn Ads<\/h2>\n\n\n\n

    To create the conversion in, open your LinkedIn Ads Campaign Manager.<\/p>\n\n\n\n

    Navigate to Account Assests -> Conversions and click ‘Create a conversion’.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Name the conversion something descriptive, e.g. Demo Request.<\/p>\n\n\n\n

    Select the conversion type, e.g. Lead or Purchase. Optionally, you can set the conversion’s value (to calculate ROAS) and conversion window (for attribution purposes).<\/p>\n\n\n\n

    You can also select the campaigns to which it applies. Additional campaigns can be added later in the campaign creation flow.<\/p>\n\n\n\n

    Finally, select the tracing method you want to use, URL or Event based.<\/p>\n\n\n\n

    \"\"
    Choosing the conversion tracking in LinkedIn Ads<\/figcaption><\/figure>\n\n\n\n

    The rest of this post assumes you’ve chose the event-specific pixel.<\/p>\n\n\n\n

    \"\"
    Selecting the event-specific conversion tracking<\/figcaption><\/figure>\n\n\n\n

    Manually adding the conversion event<\/h2>\n\n\n\n

    If you’re not using Google Tag Manager (GTM), you can copy the snippet (by clicking on it) and pass it on to your developer. You will need the developer to load this image tag once the conversion action has taken place (e.g. a form was submitted).<\/p>\n\n\n\n

    Adding the conversion using Google Tag Manager<\/h2>\n\n\n\n

    If you’re using GTM, there’s two ways you can add the LinkedIn conversion pixel. Unlike the LinkedIn Insight Tag, which has a dedicated tag in GTM, LinkedIn conversions need to be set using custom tags.<\/p>\n\n\n\n

    There are two alternatives to implement the pixel and I’ll cover both.<\/p>\n\n\n\n

    Custom Template Tag (July 2022)<\/h3>\n\n\n\n

    LinkedIn has recently added a new Custom Template tag that is expected to replace the legacy LinkedIn Insight Tag in GTM.<\/p>\n\n\n\n

    The new tag is using LinkedIn’s modern JS snippet which supports both a site-wide pageview event and a specific conversion event (as all other pixels already do<\/a>).<\/p>\n\n\n\n

    Using this tag makes the implementation simpler.<\/p>\n\n\n\n

    First, if you hadn’t already, add the new Custom Template tag to your container.<\/p>\n\n\n\n

    Create a new tag (or edit your existing LinkedIn conversions tracking) and select the tag type.<\/p>\n\n\n\n

    Under Tag Configuration select \u201cDiscover more tag types in the Community Template Gallery\u201d
    Search for ‘LinkedIn’ and select the ‘LinkedIn Insight 2.0’ tag by ‘linkedin’
    <\/p>\n\n\n

    \n
    \"\"<\/figure><\/div>\n\n\n


    Grant all the required permissions and you’re set to go.<\/p>\n\n\n\n

    Now you can add two values to the tag:<\/p>\n\n\n\n

    1. Your LinkedIn Partner ID (PID)<\/li><\/ol>\n\n\n
      \n
      \"\"<\/figure><\/div>\n\n\n
      1. Your conversion’s specific ID<\/li><\/ol>\n\n\n
        \n
        \"\"<\/figure><\/div>\n\n\n

        Finally, add the relevant trigger to the tag (for example, a form submission<\/a>) and you’re set to go.
        <\/p>\n\n\n\n

        Custom HTML Tag (Simpler)<\/h3>\n\n\n\n

        This method is probably the most popular one. All it requires is pasting the code copied from LinkedIn into a Custom HTML tag in GTM.<\/p>\n\n\n\n

        \"\"
        LinkedIn conversion pixel in a Custom HTML Tag<\/figcaption><\/figure>\n\n\n\n

        Next, add a trigger to fire this tag on the appropriate user action (e.g. form submission).<\/p>\n\n\n\n

        Custom Image Tag (Efficient)<\/h3>\n\n\n\n

        This method is only slightly more complex, but the result is much more elegant and efficient (code-wise).<\/p>\n\n\n\n

        Paste the code snippet copied from LinkedIn into a notepad app:<\/p>\n\n\n\n

        <img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"https:\/\/px.ads.linkedin.com\/collect\/?pid=123456&conversionId=123456789&fmt=gif\" \/><\/code><\/pre>\n\n\n\n

        From the snippet, grab only the value of the src:<\/p>\n\n\n\n

        https://px.ads.linkedin.com\/collect\/?pid=123456&conversionId=123456789&fmt=gif<\/code><\/pre>\n\n\n\n

        Now open up GTM and create a new tag of the type Custom Image. I bet you’ve never used this one, right?<\/p>\n\n\n\n

        Simply paste the URL you grabbed into the Image URL field:<\/p>\n\n\n\n

        \"\"
        LinkedIn conversion pixel in a Custom Image Tag<\/figcaption><\/figure>\n\n\n\n

        And that’s it. Add a trigger an you’re all set.<\/p>\n\n\n\n

        You can leave the Cache Busting checkbox marked, no need to uncheck it.<\/p>\n\n\n\n

        The dirty nerdy specs<\/h3>\n\n\n\n

        The GTM Custom HTML tag simply appends the HTML contents of the tag to the bottom most part of the page. This is add the LinkedIn pixel as an image to the bottom of the page.<\/p>\n\n\n\n

        The image is invisible, so isn’t seen by the user, but this addition to the page cause entire page to reevaluate it’s DOM, even though it practically hasn’t changed.<\/p>\n\n\n\n

        The second method, the Custom Image, only sends a request for the image without adding it to the page at all, thus a much more efficient process.<\/p>\n\n\n\n

        The difference, in most cases, is tiny, and won’t impact user experience, but I personally like to keep my code clean \ud83e\udd13<\/p>\n","protected":false},"excerpt":{"rendered":"

        When running a LinkedIn Ads campaign that drives traffic to your site, you want to have conversion tracking in place in order to optimize your ad spend. In this post, I’ll cover several methods to add LinkedIn conversion events.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,41],"tags":[],"class_list":["post-4384","post","type-post","status-publish","format-standard","hentry","category-google-tag-manager","category-linkedin"],"_links":{"self":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/comments?post=4384"}],"version-history":[{"count":3,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4384\/revisions"}],"predecessor-version":[{"id":5247,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4384\/revisions\/5247"}],"wp:attachment":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media?parent=4384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/categories?post=4384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/tags?post=4384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}