Behavioral Targeting: Site Tracking and Marketing Automation

Site Tracking ties your contact’s behavior on your website together with ActiveCampaign so your marketing and sales processes can react and adapt in real-time to the behavior of individual contacts. If you aren’t using it, I hope this post motivates you to get it set up. There are so many useful things you can do with it.

This isn’t a new feature, but it’s so powerful, with so many potential applications, I thought you might appreciate an in-depth discussion, and some specific examples, of how it can be used to improve your marketing.

Get the right message to the right contact at the right time.

After you install the Site Tracking code it begins collecting page view data on each visitor to your website. This data is anonymous (and inaccessible) until a visitor is identified by opting-in to your list, then all page views that have been collected up to that point are automatically attached to their contact record and subsequent page views are tracked and reported in real-time.

With a timestamped history of each web page a contact visited on your site, you’ll know:

– when they visited
– how many times
– the paths they’ve taken

Each of your contacts becomes a rich case study when Site Tracking page view data is combined with all the other data ActiveCampaign provides — location history, Event Tracking, activities history, the contact’s social network profiles, and any tags or notes you’ve applied.

Contact overview


Google Analytics and similar services report statistics on anonymous groups of visitors while ActiveCampaign’s Site Tracking lets you see exactly what a specific contact has (or hasn’t) done on your website. Statistics are a great way to identify trends in large volumes of data, and are popular for good reasons, but individual case studies are an underrated resource for creating detailed profiles, forming hypotheses, and examining exceptions to rules. The two approaches to data analysis complement each other giving you a more complete picture of who your target market is and how people are interacting with your website.

Know exactly what your contacts want from you…

You can make two extremely valuable assumptions about a contact based on their page views:

1.) What they are interested in
The links a contact chooses to click tell you what they are looking for and what content on your website is most important to them.

2.) The amount of interest they have
Repeat page views and, especially, repeat visits to pages indicate increased interest in that content. Someone who has viewed a product page five times during three visits to your site is probably more interested than someone who has viewed it once.


It is good “to know,” better “to do…”

Beyond just “good to know,” this data is actionable. Site Tracking becomes even more useful, and ActiveCampaign’s unique capabilities shine when this behavioral data is used to trigger Automations. ActiveCampaign can “see” what a visitor is doing and perform actions based on that behavior opening up all kinds of possibilities for marketing automation and creating a truly personalized experience.

For example, ActiveCampaign could:

  • Email a discount code to a contact who has visited a product page two or more times.
  • Check in with a contact who has viewed a product six times (but not yet purchased) to find out if they have any questions or issues — helping you identify barriers to purchase while providing excellent service.
  • Increase a lead’s score 1 point for each page view and 2 points per visit. When their score reaches 20 points, ActiveCampaign could create and assign a task then notify your salesperson it would be a good time to give the contact a call.
  • Send a contact a personalized “thank you” note two hours after they reach the confirmation page of your website’s “tell-a-friend” feature.
  • If someone is referred to your site from Facebook, Twitter, or Instagram, you could begin an automation that invites them to follow you on your social media accounts.
  • Tag visitors to a specific web page detailing a free webinar you are holding and then begin a sequence of follow-up emails to give them more information as it draws nearer, remind them when it is live, and ask for feedback when it is over. By redirecting attendees to the webinar through a page on your site you can tag them as such (you could also apply this tag using “Clicks a link in email”).
  • Send a contact a short “Do you have any questions/How can I help you?” message if they repeatedly visit your FAQ and product documentation pages after a purchase.
  • Trigger a “new customer” Automation following a purchase that increases customer satisfaction by delivering a timed sequence of messages including product-use tips, asks for a review of the product after they’ve had it a week, gives them a discount toward future purchases, and suggests other products they may be interested in.


Give your contacts more of what they want…

In addition to reacting to what is happening on your website in real-time, ActiveCampaign can use your contact’s page view history to further segment your lists. For instance, you might have a sale on a product that would not appeal to everyone on your list. With Site Tracking data you can send an email to only those contacts that have viewed the product (or that category of product). Or, you could send additional content on the same topic a visitor has indicated interest in while browsing your site.

This kind of segmentation helps keep your list as responsive as possible and contributes to a strong, positive relationship. Your contacts will come to expect that a message from your company will contain relevant content that appeals to them — increasing your open and interaction rates while reducing unsubscribes.

Putting it to use…

One useful application of Site Tracking data is an Automation that tags your contacts if they view important pages of your website multiple times.

You can apply different tags based on the number of visits. If a contact visits a product page two to five times you could tag them as “Interested in Product 1.” If they go on to visit six or more times you could remove that tag and retag them as “Very Interested in Product 1.”

You can then use these tags to:

1. Send precisely targeted messages

When sending out campaigns you can send messages to only those contacts who are tagged as interested in those products.

2. Customize emails with our Conditional Content feature

You can tailor a message to display the products they find most appealing. For instance, if you are having a storewide 20% off sale you could mention specific products they’ve demonstrated interest in:

We are having a storewide 20% off sale this weekend. This is your chance to save on products like:

– “A product the customer is very interested in”
– “A product the customer is very interested in”
– “A product the customer is interested in”

3. Gain additional analytical insights

By running reports on contacts with these tags you can know which products each of your lists is most interested in. These numbers will be different than those of your analytics service (unless you’ve configured your analytics to segment based on your lists of subscribers) which will report page view numbers biased by which products are doing well in the search engines, or linked to most often, and so will not necessarily reflect the interests of your contacts.

4. Begin other automations

By using “Tag is added” as the trigger to begin a new automation, you can pick up where this one leaves off. You could begin a series of follow-up messages that treats the contact slightly different depending on how they are tagged or move the contact into your automated sales process using ActiveCampaign’s CRM.


To create this Automation, first make a list of the URLs you would like to track. In this example I am going to use three product pages:

If you have two versions of your site (you may have an additional www version of your website if it is not configured to redirect to a single version) be sure to include each subdomain a visitor could potentially use to view the page:

I suggest you create an Automation for each product so you may end up with quite a few. To keep your Automations organized, group these Automations together by creating a tag called something like “Product interest tagging:”

Create a new automation for Product 1 and select “Web page is visited” as the triggering action.

Trigger marketing automation on page view

Enter the URL of the product page without the domain and its trailing slash (ActiveCampaign provides that information):

We want this automation to run each time a product page is viewed so select “Runs Multiple Times.” You’ll want to be careful using this setting— particularly for Automations that send messages because you could unintentionally send a contact the same message over and over each time the Automation runs:

If you need to, create an additional triggering condition for the other subdomains or versions of your site so that the same Automation will run regardless of which version of the site a contact is using. At this point your automation should look similar to this:

Now we need ActiveCampaign to divide contacts and give them the appropriate tag (or no tag).
Begin by creating a condition that separates contacts who have visited 2-5 times from everyone else. I suggest 2-5 times because, in my experience, contacts who visit a page once are not necessarily interested but if they return and view a page multiple times, they likely are interested in that product for whatever reason.

Contacts who have visited 2-5 times, will receive the tag “Interested in Product 1” and then the automation will end for them:

Now, to separate those contacts that have visited six or more times from all others, create an “If/Else” condition under “Conditions and workflow actions.” Select “Site and Event Data” then “Has visited.” In the field that appears enter the complete URL of the product page (in this example, “”). Finally select “6-15 times” from the dropdown menu. Add an “Or” condition for any other versions of your site.

Click the “+” button under the “Yes” condition and select “Add tag” under “Contact actions.” Give the tag a name such as “Very Interested in Product 1.”

Contacts will go through this automation repeatedly so they may have already been tagged as “Interested in Product 1.” Rather than having multiple tags, which might confuse things when we try to separate “interested” contacts from “very interested” contacts, let’s also create an action to remove that tag. If it isn’t on the contact when they come through, ActiveCampaign will ignore this request.

Finally, end the automation for this group of contacts:

Be sure to end the Automation for contacts who meet the “Yes” and “No” conditions.

Give the Automation a name that makes it easy to identify its purpose such as “Product 1 interest tagging” and make sure it is labeled as “Product interest tagging” so it will be easy to find when you need it.

You can easily copy this Automation and change the URLs in the triggering actions and “If/Else” conditions to create Automations for each product you are tracking.

You could make this Automation more effective by adding additional “And” conditions for number of visits. I left this out to keep the tutorial from becoming difficult to follow but it is reasonable to assume that a contact who visits repeatedly is more engaged and interested than one who had a spurt of page views in one session but then never returned.

Site Tracking is an easy-to-set-up feature that bridges the gap between what contacts are doing on your website and ActiveCampaign. It helps you increase contact responsiveness by allowing you to provide carefully customized and perfectly timed messages in response to how they interact with your website.

If you haven’t already, spend a few minutes to insert the Site Tracking code in your website’s header or install the WordPress plugin (which also makes it very easy to integrate forms into your site).

If you have any unique or effective ways you are using Site Tracking in your business, I’d love to hear them!

A trial is worth a thousand words.
Get started today, no credit card required.

  • admcolombia

    Thanks to share this excellent application. This is for me one of the most trending features than may mark a difference in our portfolio services.

  • Channing

    Brian this was an awesome article. You should post more automation examples like this because there is so much potential with active campaign it’s mind boggling. I am new to email marketing but this article just gave me (2) ideas.

    Feel free to post another and keep the great content coming ;-)

    • Brian Gladu

      Will do, Channing. Thank you for the positive feedback.

      • Mark H

        Agreed. Only blog/post that talks about the “beginner” lifestyle. :)

  • Thanks , Brian and Active Campaigns team . I agree with Channing . More examples in a Library with Import Links would be awesome add on and great value for your existing members. Thanks again.

    • Brian Gladu

      Hi Paul — We’ll definitely have more posts like that coming in the future.

  • Brian, excellent article! Definitely post more detailed use cases like this with explanations and insights.
    A related question… What do you guys recommend as the best way to track customer conversions and attribute them to the email automation flow? do you by chance have an article on that too? :-)

    • Hey Dan,
      There is not a tool specifically for something like that, to track it back to the specific automation, though you could in theory have automations tag people along the way and other automations that look for specific links to have been clicked and then tag. I know that sounds very vague but it’s an open ended question, you’d sort of have to come up with something custom to do what you’d like. There is not a great ‘out of the box’ solution.

  • Dexx Williams

    Great article!

    Two things:

    1) Are there any plans to have to the “remove Tag” feature pre-populate selections (or perhaps bring up previously added matching tags as text is starting to be entered) in order to prevent any typo-based errors from occurring where a tag should have been removed but the removal text was missing a letter etc.?

    2) Could you please do an article on how Event Tracking is used or could be used? Site Tracking makes a lot of sense, but I’m still not sure how to properly integrate the Event Tracking code (or its use) on my WordPress site…

    Please keep up the great work as always! I’m a big fan your .gif image walkthroughs as well, much better than a single long video in terms of a quick recap of steps. :-)

    • Thanks for the feedback Dexx.

      1. No plans at this time but that is a good idea. I would recommend posting it to

      2. Event Tracking requires custom development skills so it might be outside of the scope for most of our blog readers but we’ll definitely consider it. Thanks!

  • Olga Marín Sierra

    Hi, what is the best way to track whenever somebody buys a product to then give them a tag and start an automation? As I am working with e-junkie, people click on my cart button and then get directed to e-junkie/paypal for payment processing +download of digital product.

    • Brian Gladu

      Hi Olga —

      Unfortunately, I don’t have experience with e-junkie.

      Would you mind if I redirected you to our new ActiveCampaign user forum:

      If you post this question there, our community of users could give you help based on their experiences. I’m thinking someone there has probably tied the two together in the past somehow.

      I did notice that there is an upcoming Zapier integration with e-junkie so, eventually, there’s that, if nothing else:

  • Pingback: Avoid a Tagging Crisis in One Hour | ActiveCampaign Email Marketing Blog()

  • Pingback: 25 Emails That Target Each Stage of the Customer Lifecycle | ActiveCampaign Email Marketing Blog()

  • Pingback: Feature update: Trigger automations on page visits using wildcards | ActiveCampaign Email Marketing Blog()

  • Pingback: Reclaiming Lost Revenue From Abandoned Shopping Carts | ActiveCampaign Usages & Case Studies()

  • Pingback: Drip Marketing: The Essential and Complete Guide()

  • Marissa

    Hi Brian, I really need this thanks! I contacted chat support a week ago because the email reports under Contacts tab to get the details of people who have visited a certain url doesn’t work. I was told that this issue has not been fixed. Hope you could fix that as I need the info of these users. Thanks :)

    • Brian Gladu

      Hi Marissa — Will you please email me your account URL and your ticket # (if you have it handy)? It isn’t normal for an issue to take that long so I’ll look into it and give you an update.

      • Marissa

        Sent! thanks for the prompt response!

  • Jad Hammoud

    Awesome post Brian – thanks for this. Was wondering if there’s a time dimension being recorded against the actions users take. E.g. someone who visits product-1 5 times within a year is interested. Someone who visits product-1 5 times within 2 days is VERY interested. If not, what would be your thoughts on how to work around it?

    • Brian Gladu

      Hi Jad! Good question. I would use Contact Scoring to accomplish this because the points can expire based on a time condition. You could create a score for “Product interest” and then use that score reaching a threshold to trigger an automation that adds either the “Interested” or “Very interested” tag.

      • Jad Hammoud

        Now we’re talking! So if we wanted to run an automation for someone who visited posts about “Product A” 3 times within a week, we could:
        – Assigned a Lead Score threshold of 15
        – Assign 5 points to each visit expiring in a week
        That way if he / she picked up all 5 points by doing 3 visits before any of the points expired the score would hit 15 and trigger the automation.
        Interesting way of doing it … it didnt cross my mind at all. Thanks Brian!

        • Brian Gladu

          Yes, exactly, Jad. You’re welcome!

          • Jad Hammoud

            One more question pertaining to lead scoring. I’ve been trying to synch the lead score with our external CRM system as thats where the sales guys actually work. How would you go about doing that? I’ve tried to:
            1 – Use a Zapier action – Zapier sees all the custom fields but doesnt see / can’t access the Contact Score fields
            2 – Tried using a webhook action in an automation so that whenever the score changes the webhook is called. It sends all the contact details but doesnt send over the contact score fields
            3 – I even tried to copy the score over to another custom field using an automation but there’s no way to assign a variable value to a field in an automation (like an autocalculated date or something).

            How would you go about getting the lead score into another backend system?

            All the best,

          • Brian Gladu

            Hi Jad! At the moment, our scoring feature is not exposed via the API so we can’t easily export that data to other apps. This sounds like it is important to you, so please take a minute to submit a request to our feedback forum.

  • Denis

    Thank you very much Brian, great article

  • Mel Dee

    Awesome article. Do you also have a walk through for abandoned cart automations?

  • Pingback: 8 Triggered Email Campaigns You Can Send to Boost Engagement – Positive Email Results()

  • Pingback: 8 Triggered Email Campaigns You Can Send to Boost Engagement – Email Automation Setup()