Add the Beacon Code to Your Website to Track Visitors

  • Updated

Act-On's Beacon identifies visitors and sends behavioral data from your
various web properties back to Act-On to power segmentation, reports, and complete
your view of contact engagement. This guide goes over how to add the JavaScript Beacon code directly to your website.

Here is a quick overview of the steps below:

  1. Determine which of your web pages will use Act-On content or directly relate to your Act-On initiatives
  2. Access the HTML of those pages
  3. Paste in the Beacon tracking code

For best results, install the Beacon code only on the web pages that pertain to your Act-On marketing activities. If you install the Beacon on multiple additional pages that are not part of your Act-On marketing strategy, this can cause slow performance for your account reports.

Before utilizing the Beacon Tracker, you will need to set up your Custom Marketing Domain. If you have already done so, continue with the process below.

After adding or changing the tracking code, it can take approximately 15 minutes for the new tracking information to flow to the application.

Instructions

  1. Navigate to Settings > Other Settings > Beacon Settings:

Add the Beacon Code to Your Website to Track Visitors 01.png

  1. Select your desired Cookie Mode:
    • Standard Mode will cookie all visitors. It is highly recommended to integrate the beacon code with your cookie consent prompt. If you do not yet have one configured through the use of a cookie consent manager you can get set up with these instructions
    • Disabled Mode does not cookie your visitors at all. Visitors will not be tracked, and all visitors will appear as “anonymous” in the Website Prospector. This mode is not recommended unless you must comply with strict privacy regulations.
  2. Embed the Beacon Code by copying the entire block of code using either the Copy button or highlighting to copy.
    • Work with your webmaster to add this code to your website pages, blog, and other web pages to track. 
    • Make sure that the code is only called once per web page
    • A good place for the code is in the footer, just before the closing </body> tag
  3. Act-On will validate your installation automatically. After you have added the beacon code to your website pages and you have received traffic to those pages, you will see a green "Active" banner on your next visit to the Beacon Settings page. 
    • If you have installed your beacon successfully but see the red "Inactive" banner on the Beacon Settings page, you should validate that the beacon code is still present in your web pages and there has been traffic to those pages in the last 24hrs.

Add the Beacon Code to Your Website to Track Visitors 02.png

  • For best results, add the code only to pages that directly relate to your marketing campaigns
  • You do not need to add this code to your Act-On-hosted landing pages and forms (they will track visitors automatically)
  • If you change your tracking mode, you will need to replace your tracking code on each web page you have placed the code on.

Was this article helpful?

Have more questions? Submit a request