Overview

It is a widespread use case to have unique and specific information generated and added to a URL; we call it a dynamic URL.

As an example, you could choose to add your end-users company name at the beginning of the URL, such as company1.yourdomain.com, company2.yourdomain.com, and so on.

In this article, we explain how to trigger a guide when page URLs change dynamically.

Creating Target URL rules to support dynamic URLs

Before we start, make sure to access your Guide's settings by clicking on the Guides section under Content and then clicking on the cog icon of the desired guide.


After that, you'll notice a section called Page Targeting. You can use different target page URL rules to trigger your guide from your web page(s).


Using general target URL rules

URL example: company1.yourdomain.com

  • Scenario: You're adding unique information at the beginning of the URL.

  • Solution: You could target this URL by choosing one of these rules:
    "ends with: yourdomain.com" or "contains: yourdomain.com."

Using regex

The regex solution is quite straightforward; you just have to replace the unique information with the (.*) symbol.

  • If you're adding unique information (e.g., company1.yourdomain.com) at the beginning of the URL, that would be the final result:
    (.*).yourdomain.com

  • If you're adding unique information at the end of the URL (e.g., yourdomain.com/company1), that would be the final result: yourdomain.com/(.*)

Can I have a dynamic URL for the Redirection URL field?

When your end-user triggers a guide from any onboarding material such as a Checklist or a Resource Center, UserGuiding tries to match your page URL rules with the current URL, they're accessing.

If they don't match and the Redirection option for your guide is turned on, the user will be redirected to the URL informed on the Redirection URL field.

However, in this article scenario, you are meant to have some unique information on that URL; to solve that, you could add dynamic variables to the Redirection URL such as yourdomain.com/{{company_name}}/profile, where “company_name” is a dynamic variable.

You can learn more about how to add dynamic variables to the Redirection URL field from this article.

Related Articles:

How do I show a guide on multiple pages?

Personalization: Adding Dynamic Text in a Guide or Hotspot

Personalization: Displaying Dynamic Texts in the Onboarding Content

Did this answer your question?