Add additional context to pageview

I am trying to add additional context to a pageview using the trial. But I am not seeing the data being sent. Does the trial support this?

Example:

 snowplow('trackPageView', {
         context: [{
            schema: 'iglu:com.trysnowplow/object/jsonschema/1-0-0',
            data: {
               name: "pageType",
               svalue:"homepage"    
            }
         }]
        
         });

Nevermind - I figured it out. The trial is using the javascript v2 version not v3

So setup looks like this:

snowplow('trackPageView', 
      
         'MY TITLE', 
  
          [{
            schema: 'iglu:com.trysnowplow/object/jsonschema/1-0-0',
            data: {
               name: "pageType",
               svalue:"homepage"    
            }
         }]
        
         );
3 Likes

Hey @bschultz

Good catch and thanks for letting us know you figured it out. If you have any further questions, don’t hesitate to ask.