Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Prevent page reload after user clicks on cookie banner (TecArt plugin)

Solved by pamtbaau View solution

Started by Sibylle Jost 2 years ago · 4 replies · 398 views
2 years ago

Hi

I'm currently working on implementing Google Consent Mode V2 and I'm encountering an issue with the cookie banner provided by the TecArt plugin.

Problem: Whenever a user clicks on the cookie banner, the page reloads. This results in two page views being recorded in Google Analytics, which leads to inaccurate data.

Question: How can I prevent the page from reloading after the user clicks on the cookie banner?

Any guidance or suggestions on how to address this issue would be greatly appreciated.

Thank you in advance for your help!

2 years ago

Not enough information. Do you have any JS error when it's clicked? If not, them most likely (but not necessarily) this behavior is intentional. Is it an anchor tag there?

2 years ago

There is no error message and it's not an anchor tag. It could be that this is intentional but I'm wondering if it's possible to prevent it.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 47 1 week ago
Plugins · by Xavier, 4 weeks ago
2 56 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1183 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 74 2 months ago