Skip to content

WebDevStudios/WDS-Cookie-Count-Views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

WDS Cookie Count Views

Counts user's pageviews in a cookie for use in ad targeting.

####Example use for Google DFP

googletag
	.defineSlot('/XXXXXXX/SidebarHome', [320, 480], 'div-gpt-ad-XXXXXXXXXXXXX-X')
	.addService(googletag.pubads())
	.setTargeting("pageviews", wds_viewcount());

In this example, pageviews needs to be a defined custom targeting key setup in DFP.

About

Counts user's pageviews in a cookie for use in ad targeting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published