WMS: Add a campaign tracker to your website


OVERVIEW

Target audience: Site Administrators

Campaign trackers allow Site Administrators to add marketing and analytics tracking code to pages on their website. These trackers are commonly used with advertising and marketing platforms such as Meta (Facebook), Google Ads, LinkedIn to measure campaign performance and visitor activity.

In the WMS you can create a tracking script, specify where it should run, and enable or disable it as needed. The tracking code runs in the background and is not visible to website visitors.

Note: Campaign configuration, analytics reporting, and access to collected data are managed through the third-party service (for example, Google Ads, Meta, or LinkedIn), not through the WMS.

In this article:

announcement

NOTE: this article refers to a process to be used on sites that have already migrated to the New WMS.

If your site has not yet migrated see the Index of documentation for the McGill Web Management System.

Add a tracking script

To create and add a tracking script to pages on your website:

  1. Go to Configuration > Development > Asset injector > JS Injector
  2. Choose the type of tracker (e.g., Facebook, Google Adwords, LinkedIn)
  3. Enter a Label that clearly identifies the campaign.
  4. Enter the information required by the selected service, such as the tracking or conversion ID provided by that platform.
  5. The tracking script will be embedded on all pages of your website by default. Enter the desired Conditions to control to which pages of your site the tracking script will be added.
    1. Language allows you to insert the tracking script on only English or only French pages.
    2. Pages allows you to insert the tracking script on only pages you list here. Indicate the node ID of the page (one per line) in this manner: “/node/123”.
    3. Other conditions are available. Do not use them unless you understand how to use them and your campaign has specific needs that cannot be met by restricting by page or language.
  6. Save


Delete or disable a tracking script

  1. Go to Configuration > Development > Asset injector > JS Injector
  2. Your site’s campaign trackers will be listed. 
  3. Click the arrow beside the desired tracker to either Delete or Disable it.
  4. Confirm the action.


Edit a tracking script

  1. Go to Configuration > Development > Asset injector > JS Injector
  2. Your site’s campaign trackers will be listed. 
  3. Click Edit next to the desired tracker.
  4. Edit the settings.
  5. Save.

references

ADDITIONAL REFERENCES: