- Notifications
You must be signed in to change notification settings - Fork0
keen/keen-tracking-adwords-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
importKeenTrackingfrom'keen-tracking';constclient=newKeenTracking({projectId:'YOUR_PROJECT_ID',writeKey:'YOUR_WRITE_KEY'});client.extendEvents(()=>{return{page:{title:document.title,url:document.location.href},keen:{addons:[{name:'keen:url_parser',input:{url:'page.url'},output:'page.info'}]}}});client.recordEvent('pageviews',{// you can put any additional data here});
In your Adwords Campaign, edit your Ad'sFinal URL:
- add any parameter that will help you identify the source of the traffic later on. For example: "?ad_id=123"
Your events should contain page.info.query_stringwith values from the URL of the landing page (Final URL)
Run a query to see how many visitors came from the Ad
- Analysis type: count
- Event Collection: pageviews
- Add filter: page.info.query_string.ad_id = 123
About
No description or website provided.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published