doublesecretagency / craft-adwizard

Ad Wizard plugin for Craft CMS
Other
7 stars 8 forks source link

Feature: Track Views via JS #50

Closed cballenar closed 5 months ago

cballenar commented 6 months ago

Problem

When working with a page that alternates content and ads, caching the content in the page leads to the ads being rendered once. Since the counting of the views occurs at rendering, views of the cached content are not counted.

Solution

Details of PR

cballenar commented 6 months ago

@lindseydiloreto I'd be happy to get your thoughts on this or help with further changes to bring it more in line with the product if needed.

lindseydiloreto commented 5 months ago

This is a great idea, thanks for submitting it! I'll take a look and merge everything shortly. 👍

lindseydiloreto commented 5 months ago

This is now available in v3.4.0 (for Craft 4) and v4.1.0 (for Craft 5). Thanks again for this awesome contribution! 🍺