Add enhanced matching code to your website

Last updated: 7 months ago

When you add enhanced matching code to your website, you can send additional information with your Insight Tag data, such as an email address provided when a customer submits a form on your website. Enhanced matching helps us optimize your campaigns so you can better reach your target audience. 

Important to know

Information sent using enhanced matching is hashed on the website before being sent to LinkedIn. Hashing transforms text to be unreadable, which can help protect your customer’s privacy – we only match information we already have, the rest remains unreadable.

Before you can add enhanced matching to your website 

Before adding enhanced matching, you must have the Insight Tag installed on your website. If you haven’t installed the Insight Tag on your site yet, please follow these instructions and learn more about the Insight Tag: 

Add enhanced matching to your website 

To add enhanced matching code to your website: 

  1. Confirm that you’ve added the Insight Tag to your website and it’s working. 

  2. Copy the following Javascript code: 

    lintrk("setUserData", { email: "USER_EMAIL" }); 

  3. Insert the code on successful email submission forms on your website.  

  4. Replace the value in USER_EMAIL with the variable that contains the customer email address. 

  5. Publish your website. 

Related tasks 

Learn more