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.

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 so that you can 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.

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

Step By Step Instructions

  1. First, hover over the List Options 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 button

  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 <BODY> tag.

    Please 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.

    Javascript snippet

    Once complete, click "Continue to Step 2" to finish setup.

    Continue to Step 2 button

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

    Add Automation button

  5. You will first have to enter the URL that you want to use. You can track when a subscriber visits a specific URL that exactly matches what you input. Click the "Webpage URL" drop-down menu and select "Exactly matches."

    Exactly matches URL

    Then, enter your URL.

    Enter your URL

  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: https://www.example.com/?receiptid={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 option

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

    Enter your URL with query string

  7. Next, select the action and result. At this time, you can only choose "Page Hit" and "Add/Remove Tag."

    Select action and trigger

  8. Input any tags that you would like to add to your subscribers when they visit this page.

    Add tags

  9. Input any tags that you would like to remove from your subscribers. Once complete, click "Save."

    Remove tags

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

Page Hit Automations

Please 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.

Abandoned cart tag applied

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.

Abandoned cart tag removed

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
Powered by Zendesk