If you could use negative lookahead the below would work for the goal step regular expression:
/(something|somethings)/(?!.phonecall).
Welcome to the Q&A Forum
Browse the forum for helpful insights and fresh discussions about all things SEO.
If you could use negative lookahead the below would work for the goal step regular expression:
/(something|somethings)/(?!.phonecall).
Thanks for the response Kevin. The issue I am having is that Google Analytics does not allow negative lookahead to be used which would be the easiest approach to ensuring none of the following our matched:
/specifictextstring/anytextstring/anytextstring/anytextstring**phonecall
/specifictextstring/anytextstring/anytextstring**phonecall
/specifictextstring/anytextstring/anytextstring/phonecall
/specifictextstring/anytextstring/phonecall
Thanks
Hi All
I've been struggling to create a regular expression for a Google Analytics goal step that would match the following:
^/specifictextstring/anytextstring/anytextstring/
^/specifictextstring/anytextstring/
However I don't want it to match any URLs that end with:
/anytextstring**_**phonecall or /phonecall, for example:
/specifictextstring/anytextstring/anytextstring/anytextstring**phonecall
/specifictextstring/anytextstring/anytextstring**phonecall
/specifictextstring/anytextstring/anytextstring/phonecall
/specifictextstring/anytextstring/phonecall
Does anyone have any ideas?
Thanks in advance for all contributions.