Using regex for url in triggers

Respondida

5 Comentarios

  • Jamie P

    After a lot of fiddling about trying to diagnose another problem, I found the following regex does work:

    .*www.somniumtech.com.*|.*portal.somniumtech.com/products.*

    I assume the regex engine is very limited in what it accepts. Apparently not Python regexes as implied by the documentation.

    0
  • Yunen Yeo

    Hi Jamie,

    The 2 regex examples you gave above should work. In order to ensure the integrity of our triggers, we actually do not fire events if a page refresh on the same page URL happens. This makes sures that triggers only fires on a true page load event.

    Perhaps you can try these regexes again, and open your pages in incognito to see if the trigger really fires

    0
  • Jamie P

    Hi Yunen,

    Thanks for the reply. I think you are right: I was probably using page refreshes to test the trigger. This would explain why I had such a hard time getting it to fire. I think I spent a lot of time trying to debug problems that weren't there!

    Is this fact documented anywhere? How about a blog post with tips on how to test triggers...?

    0
  • Yunen Yeo

    Hi Jamie,

    Good idea on an article on how to test triggers. Let me speak to my content team and see if they can whip something up!

    0
  • Jamie P

    Hi,

    I put a few of my ideas in the Tips & Tricks section:

    https://zopimsupport.zendesk.com/hc/en-us/community/posts/211714787-Tips-for-testing-debugging-triggers 

    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk