Skip to main content
Contributor I
April 28, 2022
Solved

Segment by page viewers

  • April 28, 2022
  • 11 replies
  • 1807 views

Does anyone know how I can create a segment based on which subscribers have viewed a specific page on my client’s website? I’ve looked through properties but can’t seem to find a suitable option. 

    This topic has been closed for replies.
    Best answer by alex.hong

    Hi there @chloelongsoup,

    Welcome to the Community!

    Webpage tracking isn’t a standard feature of Klaviyo but if you want to create/custom code an event to be shared with our platform, i.e. if a profile goes to a certain page, click a certain thing, you can certainly do so by using Klaviyo’s APIs. You can read more about APIs with Klaviyo here. This is feasible with some help from a web developer.

    Otherwise, if you just want to track people, I would recommend using Google Analytics. Please note that those data would be all tracked within GA and not Klaviyo. 

     

    Hope that helped!
    Alex

    11 replies

    David To
    Klaviyo Employee
    Klaviyo Employee
    April 19, 2023

    Hey @lesielle,

    I’m not a developer so I’m unfamiliar with editing and customizing a code snippet. But with my basic understanding, from that snippet, the window.location.href function actually retrieves the dynamic page URL. 

    That means, once it’s retrieved, you can pull the dynamic URL into your event response dynamically, 

    If you’re uncomfortable with customizing the code snippet, I would encourage you to reach out and work alongside a developer who can offer you a custom solution. As mentioned prior, we do have a network of Klaviyo Partners who specialize in work such as this. 

    David