opensupplyhub / open-apparel-registry

An application for searching, matching, uploading factories.
MIT License
32 stars 13 forks source link

Add HubSpot, Facebook and LinkedIn Tracking to openapparel.org #1517

Open hlennett opened 2 years ago

hlennett commented 2 years ago

Overview

We'd like to add tracking codes to openapparel.org for some of our marketing sites.

For Facebook:

This is the meta-tag that needs to be added: meta name="facebook-domain-verification" content="of7vm0cmuvg7rk7076ojpv7ith6qhm" / (removed carrots from the ends because code wasn't displaying in GitHub but you can see how it should look from the screenshot below)

These are the accompanying directions. Screen Shot 2021-11-03 at 9 01 08 AM

We can hit "Verify Domain" once done.

For LinkedIn:

  1. | First, copy the code:

script type="text/javascript"> _linkedin_partner_id = "3366124"; window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || []; window._linkedin_data_partner_ids.push(_linkedin_partner_id);

  1. | Next, paste the code into the global footer of your domain either before or after the tag.
Screen Shot 2021-11-03 at 9 10 03 AM

For HubSpot:

Screen Shot 2021-11-03 at 9 05 44 AM

cc @katieashaw

hlennett commented 2 years ago

Updated Google tag as well: This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first item into the of every webpage you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet below to your existing Global Site Tag.

Screen Shot 2022-04-20 at 12 57 27 PM