Skip to main content

How to install Albacross tracking code

Here's how to set up your Albacross tracking script

Written by Oskar Johnson Hägglund

To start identifying the companies that visit your website, add the Albacross tracking code to every page of your site. You can do it in three ways:

  1. Paste the code into your site yourself

  2. Add it with Google Tag Manager

  3. Use our plugin for WordPress or Joomla!

We also have guides for Shopify, Squarespace, Wix, Drupal and Adobe Launch.

Manual installation

  1. In Albacross, open the profile menu at the bottom left, click Settings, then Website Tracking. The Manual tab shows your tracking code with your Client ID already in it. Click the copy button next to it.

  2. Paste it before the closing </body> tag on every page of your website, and publish the change.

The code looks like this, with your own Client ID in place of YOUR_CLIENT_ID:

<script>window._nQc="YOUR_CLIENT_ID";</script>
<script async src="https://serve.albacross.com/track.js"></script>

If you copy the code from this article, replace YOUR_CLIENT_ID with your Client ID, or no companies will be tracked. See Where is my Client ID?

If someone else manages your website, enter their email address on the same page and click Send. They get the code and the setup instructions by email.

Installation via Google Tag Manager

The Google Tag Manager tab on the Website Tracking page has these steps with your code.

  1. Go to your workspace in Google Tag Manager and click New Tag.

  2. Click Tag Configuration and choose Custom HTML.

  3. Paste the tracking code from the Website Tracking page into the HTML field.

  4. Under Triggering, pick a trigger of type Page View that fires on All Page Views. To track only some pages, see How to Install the Albacross Tracking Script on Selected Pages Using Google Tag Manager.

  5. Save the tag, then click Submit and Publish to put it live on your website.

Instead of a Custom HTML tag, you can use our Albacross Tracking template from the GTM Community Template Gallery. In Tag Configuration, click Discover more tag types in the Community Template Gallery, search for Albacross, add Albacross Tracking to your workspace and enter your Client ID. The template is the better choice if your site has a strict Content Security Policy.

Here's a video of the GTM setup:

Check that it works

On the Website Tracking page, click Check installation and enter your website. It can take up to 24 hours before the first companies show up in Website Visitors. If they don't, see Content Security Policy (CSP) and the Albacross scripts.

Did this answer your question?