1.8K members online now
1.8K members online now
Learn how to create your first experiment and get tips on creating A/B, redirect, and multivariate tests.
Guide Me
star_border
Reply
Highlighted

Testing one element on multiple pages

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

In Google Optimize, is there a way to track the same click on multiple pages within one test?

 

For example, if there's a contact button in the same place on multiple pages, can all of those pages be included in one test?

 

Thanks,

 

 - Tim

2 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by Jason O (Community Manager)
January

Testing one element on multiple pages

Google Employee
# 2
Google Employee

Hey Timothy! 

 

Optimize can easily run the same change on multiple pages with URL targeting, as long as the element to be changed can be consistently identified.  As for tracking, it's all a matter of your GA tracking setup - for instance, if that contact button sends a particular event action, you can make a goal out of that and use it in Optimize.  Thanks for the question!

 

Jon

Testing one element on multiple pages

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

How would I do that exactly please? I've got the h3 element on this page that i'm looking to AB test with various different text. But this is just one product page of hundreds and so i'd like to have the test run across all of the product pages. As in we over 400 different tours, lodges and projects that are all set up as 'listings' on the site. How could I go about expanding an AB test to run on that element across the whole site basically?

 

Thanks for your help! 

Testing one element on multiple pages

Follower ✭ ✭ ☆
# 4
Follower ✭ ✭ ☆

You would probably have to play with the css. Here's a link for how you might go about doing that:

 

https://support.google.com/360suite/optimize/answer/6369964?hl=en#css-selector-building

 

 

Testing one element on multiple pages

Google Employee
# 5
Google Employee

In case that you still haven't figure this out: You can go to the targeting tab of your experiment and change the targeting conditions from matching a single url, to matching any of a list of urls (just type more urls), or even use a regular expression.

 

Now if the elements that you are changing (or any of their ancestor elements) have a unique id or class across all pages, things should work fine.

 

You can use the editor change list interface and inspect the CSS selectors of your changes to make sure.

Testing one element on multiple pages

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Is this only available on the paid version of Optimize?

Testing one element on multiple pages

Google Employee
# 7
Google Employee

No, its available in all versions.

 

In the experiment details page  there is a "Configuration" section with a "Targeting" tab.

 

In the bottom of that card there are buttons to "Add rule" or edit or remove an existing rule.

 

Keep in mind though, that you can't change a started experiment but only a draft experiment.

 

The reason for this is to protect experiments from corrupting the already collected data and provide wrong results.

 

You can use the container page to "copy" an experiment (overflow menu), change its targeting rules so that it applies to multiple pages and start it from scratch. 

Testing one element on multiple pages

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

But how would I apply a small change to every product page? We have over 350 product pages that we want to make a change to...

Thanks

Testing one element on multiple pages

Google Employee
# 9
Google Employee

- Create an experiment using one example (i.e. model) product page.

  For example that might be:

  http://www.site.com/products/productA.html

- Use the Optimize editor to implement your change there.

- Go back to the experiment details page and go to the targeting tab.

- Edit the default rule which should be:

  URL matches http://www.site.com/products/productA.html 

- You could change that to something like (depends on your site):

  URL regexp http://www.site.com/products/.*

  or perhaps

  Path starts with /products

- Don't start your experiment yet. Use the "preview" icon to make sure that your change

  works correctly on your model page.

- On that tab, navigate or change the URL to other product pages and make sure that it

  works there too as expected.

- If everything looks good you can start your experiment.

  

Testing one element on multiple pages

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hi Dimitris,

 

I have set the "https://hippocabs.com/Jaipur-to-Delhi-cab" as editor page and now i want to track the all pages which i have in my website like "

https://hippocabs.com/Jaipur-Delhi-taxi". In targeting section i have create rule such as URL Contains:Taxi and URL Contains: Cab. So now I can test the same experiment in all pages or I have to do any other thing.

 

In GTM I have also triggered the Optimize ID and Container ID for the editor page.