1

I tried:

  1. Create Variable:

    • Variable type: URL
    • Component type: Query
    • Query Key: "ignoreme", URL Source: Page URL/Default
  2. Create Trigger:

    • Trigger type: Page view
    • This trigger fires on: Some page views
    • Fire this trigger when an Event occurs and all of these conditions are true: ignoreme does not equal "1"

However, when I go to example.com?ignoreme=1, the Google Analytics still counts it as a visit and shows me as a visitor. I have published the changes in GTM and deleted my browser cookies.

2
  • This works just fine for me. Did you choose "1" or 1 as the value in your trigger? Aug 17, 2017 at 13:01
  • It must have been something like that, it works for me to now. Thank you for checking.
    – kslstn
    Sep 1, 2017 at 12:26

1 Answer 1

0

Here's how you can do it.

Create a pageview trigger:

  • Fire on: some pageviews.
  • Fire trigger on:
  • "Page URL" + "matches RegEx (ignore case)" + "ignoreme=1"

Save trigger.

Edit your Tag for sending "All pages" pageviews to GA.

  • Scroll down to Triggering and add Exception.
  • Pick the trigger you created as an exception.

Save Tag and preview it before you publish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.