Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not registering clicks #42

Open
hafizovic opened this issue Feb 19, 2023 · 2 comments
Open

Not registering clicks #42

hafizovic opened this issue Feb 19, 2023 · 2 comments

Comments

@hafizovic
Copy link

Hello everybody...
Im usign Blitz caching and because of that i had an issue with 'adWizard is not defined'

After exploring, i copied superagent and aw js in suitable folder location, now i dont have that problem, but when I click on ad, click is not registered, and this is the issue that ive got
image

@hafizovic
Copy link
Author

P.S. Im using Sprig to inject ad

@hafizovic
Copy link
Author

For everybody who have the same issue, this is my current solution

Its pretty much based on this comment https://github.com/doublesecretagency/craft-adwizard/issues/9#issuecomment-833375065

only difference is to change this
data[window.csrfTokenName] = result;

with
data['CRAFT_CSRF_TOKEN'] = result;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant