Add enhanced matching code to your website

Last updated: 2 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: 

Important to know

Consistent with our terms, the Insight Tag should not be installed on web pages that collect or contain Sensitive Data. This can include pages offering specific health-related or financial services or products to consumers.  

 

For example, depending on the content of the pages, the Insight Tag may be included on a generic homepage for a pharmacy or a bank, or business-to-business pages directed only to organizations and financial or healthcare professionals, but should not be included on consumer pages for certain types of medications or pages where users manage their financial accounts and transactions or medical appointments, since it could lead to the inadvertent collection and sharing of sensitive information regarding the health or finances of individuals who visited that page.  

 

This does not constitute legal advice. Please consult with your webmaster and legal counsel to determine which pages may or may not collect sensitive data. 

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