How do I add a tag to a subscriber who visits a page of my website?

With AWeber's Email Web Analytics, you can get some more advanced stats about how subscribers are navigating through your website after they click on a link in your message. When a subscriber visits a particular page of your website, it is recorded as a Page Hit.

In this article, we will walk through how to set up Web Analytics and how to apply tags based on Page Hits.

For example, let's say you hyperlinked to the homepage of your website and a subscriber clicks that link. If you have Web Analytics set up on your site, AWeber would not only record the click of the hyperlink, but we would record the visit to your homepage as a Page Hit. If a subscriber were to visit the homepage and then navigate to your blog, the URL of the blog would also be recorded as a Page Hit. You can also set up sales tracking to see which subscribers are purchasing your products after visiting your sales pages. 

You can use tags with Page Hits to easily track the subscribers who visit certain pages. This is useful because you can trigger campaigns based on tags, allowing you to further target your subscribers based on the actions that they're taking on your website. There are different reasons to use Page Hit automations, which we will discuss in more detail in the sections below.

Note: This feature is not accessible on the AWeber Free plan. Upgrade your account to unlock this feature and many more by clicking here, or by contacting our Customer Solutions team.

Further instructions on how to upgrade your account if needed can be found here.

Step By Step Instructions

  1. First, click the "Automations" tab and click "List Automation."

    List Automation tab

  2. If you haven't done so already, set up Web Analytics on your website. Click "Manage Domains" to get started.

    Manage Domains tab

  3. AWeber provides you with a snippet of JavaScript that you will have to add to all of the pages of your website. Copy that JavaScript and paste it into the coding of your website, directly above the closing </body> tag.

    Note: This snippet must be included on all of the pages of your website. If the snippet is missing from a page and a subscriber visits that particular page, then the Web Analytics tracking chain would be broken and we would not be able to track any further Page Hits.

    Tracking Code

    Once complete, click "Next Step" to finish setup. You'll add the domains where you want to track Page Hits. 

    Click Next Step

  4. Return to the List Automation page and click "Add Automation" to apply tags to a Page Hit.

    Add Automation button

  5. You can track when a subscriber visits a specific URL that exactly matches what you input. Click the "If the webpage URL" drop-down menu and select "Exactly matches."

    If the webpage URL drop-down

    Then, enter your URL.

    URL Text Box

  6. You can also track a URL that contains a query string. For example, a customer might be brought to a receipt page after purchasing a product, which contains their specific receipt number. The URL could be something like:{receipt id}. The receiptid={receipt id} portion of that URL would be the query string that you can track. Select "Contains" from the drop-down menu.

    Contains in Dropdown menu

    And enter either the full URL with the query string or just the query string itself.

    example query string in text box

  7. Next, input any tags that you would like to add to your subscribers when they visit this page.

    Add Tags box

  8. Input any tags that you would like to remove from your subscribers. 

    Remove tags box

  9. Once complete, click "Save."

    Save button

And that's it! After you save, you will see your automation rule under the "Page Hit Automations" section.

Example Automation under Page
  Hit Automations section

Note: There are some exceptions to the Page Hit automation. A particular subscriber can only have a rule applied to them once. If a subscriber hits a page and has a tag applied, and then you remove that tag and they hit the page again, the tag will not be applied a second time. The same is true if you change the tag--the new tag won't be applied the next time the subscriber visits the page. Also, the automation rule will only apply to the list on which you set up the automation.

How can I use Page Hit tags?

There are a lot of different use cases for tags and tagging your Page Hits helps expand them so that you have more ways to automate your business. One way that you could use Page Hit tags would be the example provided in step #6. You could tag the subscribers who reach the receipt page with something like "customer" so that you know which subscribers purchased your products and you can send a targeted campaign to them.

You can also apply a tag when someone reaches the checkout page of their shopping cart. You could tag them with something like "abandoned cart" and create an abandon cart campaign to trigger on that tag with a wait action to delay the first message.

Example of adding abandoned cart tag

If they decide to purchase the product, you can remove the "abandoned cart" tag and apply a second tag to their receipt page. The tag applied on the receipt page can simultaneously remove them from your abandoned cart campaign and trigger a campaign for customers.

Example of removing abandoned cart tag and adding another

The above example would be beneficial in your Shopify store too! You can set up Web Analytics in your Shopify account, so you now have the ability to tag subscribers when they reach your Shopify receipt pages.

Beyond the eCommerce benefits, Web Analytics can help you determine how subscribers are accessing your site and what pages they're visiting. If you have multiple websites with Web Analytics installed, and a subscriber visits one of your sites and then visits your second site, AWeber would be able to track that movement. You could tag subscribers who hit your second site and send some campaign messages based on that content.

If you have any questions about how you can accomplish an automation using Page Hits and tags, or need help brainstorming a specific use case, you are more than welcome to contact our customer solutions team.

Have more questions? Submit a request