Page

The page call lets you record whenever a user sees a page of your website, along with any optional properties about the page.

Note: In our javascript ligrary a page call is included in the snippet by default. We do that because you must call this method at least once per page load. However, you can choose call it multiple times if you have a single-page application.

dripit.page()
Field Type Description
token String Project token from users Dripit integration page
anonymous_id String Pseudo unique identifier visiting your web site
url Strings Full URL of the page
referrer String (Optional) Full URL of the previous page. If left empty we will interpret this as direct traffic.
user_agent String (Optional) Users client User agent. If left empty requesting clients user agent will be taken.
curl -H "Content-Type: application/json" 
     -X POST 
     -d '{
       "token":"shop_token", 
       "anonymous_id": "022bb90c-bbac-11e4-8dfc-aa07a5b093db", 
       "url": "https://business.com", 
       "referrer": "https://facebook.com?dfbaid=90872352751",
       "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.361"
     }' 
     https://api.dripit.com/api/page

results matching ""

    No results matching ""