Skip to main content

Page load event script

Zuora

Page load event script

The Page Load Event script is used for all Page Load (21) events. It shares the same structure and variables as the Paywall Impressions and Clicks Script, with the following key differences:

  • wId_2 Value: This field should remain empty during a page load, as shown in the payload below.
  • increaseRA Boolean Value: Determines whether the page contributes to a metering or paywall count. Set to true if the page is eligible for metering/paywall restrictions; otherwise, set to false. For more information, see

curl --location 'https://{region}.production.ai.zephr.com/{hostname}/SendEventData' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic your-auth-token-here' \
--data '{
  "action": 21,
  "wId_2": [""],
  "dtId": "a1b2c3d4-e5f6-78a9-bc01-23de45f6a7b8", 
  "refer": "https://www.google.com/referurl",
  "requestUrl": "https://www.publisherdomain/path",
  "content": {
    "increaseRA": "true",
    "articleId": "xxxxxxxxxxxxx",
    "section": "politics",
    "subSection": "local",
    "articleType": "long-form",
    "articleClass": "free"
  },
  "user": {
    "userState": "your-user-status",
    "userId": "1234-5678-abcd-efgh",
    "knownDate": "12-12-23",
    "isTrial": true,
    "isLapsed": false
  },
  "product": {
    "offerName": "24+: offerte pop up", 
    "offerKey": "123"
  },
  "context": {
    "countryCode": "GBR",
    "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1",
    "referSource": "www.google.com",
    "custom": {
      "variable_1": "industry",
      "variable_2": "position",
      "variable_3": "responsibility"
    }
  }
}'