O
O
Ooopss2021-02-17 14:39:17
Marketing
Ooopss, 2021-02-17 14:39:17

How to track page visits by anchor?

There is a page with dynamic parameters like https:// moysite/rossiya/?service=private-goods/type=86746 in cases where the target action is performed, it becomes https:// moysite/rossiya/?service=private-goods/type=86746# moiyakor

Need to capture all pageviews with #moiyakor

How to write a regular expression when setting up a goal in Google Analytics?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-02-22
@Vaes

Google Analytics Help:

If parameters or search queries can be added to the end of the URL, then when setting up addresses for conversions and funnels, we recommend using match types that start with and a regular expression. Here are some examples of dynamic URLs:
www.example.com/about/pageWithParameter.html?id=89
www.example.com/sales/JanuaryOffer.html?utm_source=NewsLetterJan&utm_medium=email
sports.example.com/checkout.cgi?page= 1&id=002

Match types:
The "begins with" match type allows you to ignore parameters at the end of the URL.
It is assumed that the URL must match the entered string from the first character to the last character you specify. Use this option when your page URLs are generally unchanged but contain additional parameters at the end that you want to exclude.
If your site generates content dynamically, use the match filter starts with and don't include unique values.
For example, the user could go to www.example.com/checkout.cgi?page=1&id=9982251615. In this case, the value of the id parameter will be individual for each user. For this page, you can use the URL /checkout.cgi?page=1 and select the match type starts with.
The regular expression match type allows you to check for a match against multiple criteria.
The regular expression uses special characters to enable wildcards and flexible matching. This is useful in cases where some components of the URL may change dynamically, but the address always points to the same page.
If the user came from one of the many subdomains, and your URLs use session IDs, use regular expressions to define persistent URL elements. For example, checkout.cgi\?page=1 would match sports.example.com/checkout.cgi?page=1&id=002 and fishing.example.com/checkout.cgi?page=1&language=f... .
Another example is a regular expression that matches any visited page in the ^/sports/.* subdirectory.
Learn more:
https://support.google.com/analytics/answer/111609...
https://support.google.com/analytics/answer/111609...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question