Example of Customised Pageview Collection

In this article

Examples of custom properties that can be collected with your pageview event

Create your pageview event schema to finalise your Permutive tag

During implementation and Kick-Off meetings, your Customer Success Manager will ask you to specify a pageview event schema so our engineers can finalise your Permutive tag.

Below are some example schemas to aid you in the production of your own.

Example 1 Example 2 Example 3

Collecting:

  • Day of the week the pageview was performed
  • Various article properties
  • Review rating present on the page
{
      context: {
        day_of_week: dayOfWeek,
      },
      content: {
        type: CONTENT_TYPE_AS_STRING,
        article: {
          title: ARTICLE_TITLE_AS_STRING,
          section: ARTICLE_SECTION_AS_STRING,
          subsection: ARTICLE_SUBSECTION_AS_STRING,
          topics: ARTICLE_TOPICS_AS_ARRAY_OF_STRINGS,
          channel: ARTICLE_CHANNEL_AS_STRING,
          authors: ARTICLE_AUTHORS_AS_ARRAY_OF_STRINGS,
          content_type: CONTENT_TYPE_AS_STRING,
          description: ARTICLE_DESCRIPTION_AS_STRING
        },
        review: {
          rating: RATING_AS_INTEGER_BETWEEN_0_AND_5
        }
      }
    }

 


Each tag will be related to the page on your site. To begin, we suggest inspecting the HTML to get an idea of the content you can scrape off the page.

Permutive automatically collects some standard events, these docs explain what events are already collected and this doc details the properties collected for each standard event and what information they collect.

If you have any questions, please contact customer support by emailing support@permutive.com or chat to the Customer Operations Team via the LiveChat icon in the bottom right corner of your screen.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request