Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Questions about visitor and goal counts with at.js 2.2 TriggerView()


Level 2

We’re looking into upgrading from at.js 1.7 to 2.2 so we can incorporate TriggerView() into our SPA.


I’ve been testing things in our stage environment and the 2 big things I’m trying to understand are:

  • Do SPA visitors only count as activity visitors if they’ve been exposed to a modified view? (It seems like the answer is yes)
  • Does TriggerView() provide the ability to set up conversion metrics based on URL visits? (It seems like the answer is no)

Here’s more background. Let’s say I have a reservation scheduling SPA.


The normal funnel “page” URLs and order are:


There’s also this page:


I want to run a test on and have the modification in the appropriate view. But people can enter the application through any of these pages and then circle back to the top of the funnel so I have to set up the activity Page Delivery options as:


Page = 

OR any page where url contains 


I want the success metric to be:

Increase Conversion

Measured by… Viewing of page


We’re adding the TriggerViews on each page load using DTM.


  • If someone hits just /search and then bounces, are they counted as a Visitor in the test? The page matches the “OR contains“ rule but I don’t want them counted since they haven’t actually seen the modification.
  • The goal metrics always return 0. Target has never been able to return URL-based goal metrics in our SPA. I thought adding the TriggerVew() might solve this or enable a new “viewed TriggerView” option in the goal settings but apparently not. Are we implementing something wrong? We typically use A4T but it would be nice to be able to use Target as the report source so we can use AutoAllocate.
0 Replies