Skip to content

Instantly share code, notes, and snippets.

@erikfried
Last active August 29, 2015 14:23
Show Gist options
  • Save erikfried/4aa1e73dc6d2a7d1a668 to your computer and use it in GitHub Desktop.
Save erikfried/4aa1e73dc6d2a7d1a668 to your computer and use it in GitHub Desktop.
Example of pulse2 tagging of section page
[
{
"@context": [
"http://www.w3.org/ns/activitystreams",
{
"spt": "http://schibsted.com",
"spt:sdkType": "JS",
"spt:sdkVersion": "0.3.0"
}
],
"@id": "895dfb65-7368-4954-bd2a-dc0bff2e50af",
"spt:pageViewId": "3bb05acb-1fd0-4095-9c1b-e396542b8cf6",
"published": "2015-06-26T12:41:22+02:00",
"actor": {
"@type": "Person",
"spt:userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36",
"spt:screenSize": "1920x1080",
"spt:viewportSize": "893x963",
"spt:acceptLanguage": "en-US",
"@id": "urn:schibsted.com:person:cccbfc87-4bf1-4044-8492-b9b34160ecb3",
"spt:environmentId": "urn:schibsted.com:environment:7f004085a8214c8f110d9c6cd6c312007f36f075d31058276f149a7f65c0fe36",
"spt:sessionId": "urn:schibsted.com:session:e9c304e3-8b38-40f1-ac6b-73c931af0a2e",
"spt:userId": "urn:schibsted.com:user:2200091"
},
"provider": {
"@type": "Organization",
"@id": "urn:schibsted.com:aftonbladet_staging",
"url": "http://www.local.abse.aftonbladet.se:8080/sportbladet/fotboll/",
"category": "sportbladet",
"subCategory": "sportbladet_fotboll",
"siteName": "desktop",
"subscriptions": [
"plus",
"vikt"
]
},
"@type": "Read",
"object": {
"@type": "Page",
"@id": "urn:local.abse.aftonbladet.se:page:sportbladet_fotboll",
"url": "http://www.local.abse.aftonbladet.se:8080/sportbladet/fotboll/",
"displayName": "Fotboll | Sportbladet | Aftonbladet",
"spt:meta": {
"spt:description": "Fotboll på Aftonbladet.se. Vi har senaste nyheterna och resultaten på Sveriges nyhetsportal",
"spt:keywords": "Aftonbladet: Sveriges nyhetskälla och mötesplats,Aftonbladet,nyheter,svenska,senaste nytt,kvällstidning,news,swedish",
"spt:viewport": "width=1005, user-scalable=yes",
"spt:application-name": "Aftonbladet",
"spt:apple-mobile-web-app-title": "Aftonbladet",
"spt:msapplication-TileImage": "/assets/gfx/mobile/logo-icons/ab-icon-144x144.png",
"spt:msapplication-TileColor": "#ce181e",
"spt:msapplication-starturl": "http://www.aftonbladet.se"
}
},
"origin": {
"url": "http://www.local.abse.aftonbladet.se:8080/sportbladet/"
}
}
]
window.pulse2opts = {
"clientId": "aftonbladet_staging", // <- '_staging suffix not in live enviroment
"respectDoNotTrack": true,
"pageId": "sportbladet_fotboll",
"pageType": "Page",
"provider": {
"category": "sportbladet",
"subCategory": "sportbladet_fotboll",
"siteName": "desktop", // desktop|mobile|tablet - NOT device type, but site version regardless of used device
"subscriptions": [ // Services for wich the user has active subscriptions
"plus",
"vikt"
]
},
"userId": 2200091
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment