Jump to content

Cookie Notice

Featured Replies

Posted

I'm adding on top of this plugin so I thought a topic for it would be nice for some testing and feedback.

Added an option to block the _ga cookie by Google Analytics until the consent message is dismissed.

I've been testing this, and while the analytics.js file will still be loaded, no tracking information is sent to Google.

After enabling the option in the ACP, delete your existing _ga cookie before testing.

Edited by -FP

  • Replies 123
  • Views 16.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Ignore what I said above this. I got it working (lol), I will update a new version later today.

  • Sander Vancanneyt
    Sander Vancanneyt

    Yes, but the main message text is only available in one language, it isn't available in the translation manager. Which should be a more convenient place for it. And also, after upgrading to the latest

  • Yep, that's the problem on my site too. It's not translating that's the problem but the fact that my site is bilingual and it's only possible to have message text in one language. Users using language

Posted Images

Great! If it could do adsense as well, we would be getting somewhere :)

  • Author

For adsense what do you want, disable interest based ads?

No, the requirement for (Dutch) law is that the cookie may not be set until explicit content has been given.

The same goes for facebook, twitter etc.

My website is targeting Dutch visitors, so I am in clear violation of Dutch (and partly European) law.

 

On this page of my site the following cookies are written:

https://www.sat4all.com/forums/topic/347763-is-putin-nog-toerekeningsvatbaar/

DoubleClick
Facebook Connect
Google Adsense
Google Analytics
Google+ Platform
Gravatar

As far as I know the top 5 are tracking cookies and should not be written without explicit consent of the (Dutch) visitor. Analytics and Adsense have been configured by me using the IPS functionality (Ad Code Integration and Search Engine Optimization), Facebook connect is due to the functionality within IP board (Social Media and Sharing) which I can not prevent without switching it off entirely.

That Is why I think it is IPS responsibility, or call it moral duty to at least help solve this problem.

Edited by Michel_72

  • Author

I'll take a look, but even if I manage to make it happen, apps like GHOSTERY will still list Google Analytics for instance, because analytics.js is called, but the _ga cookie is not set thus no tracking information is collected, at least so far in my plugin.

Or that's what they say in the information for the code I implemented: https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#optout

Edited by -FP

Thanks. It won't be a solution for me, since I am still on 3.4.8, but I appreciate your efforts anyway and I'm sure others do so as well.

  • 2 weeks later...

Can I modify the xml file to change the "More info" link target to "_blank"?
If yes, how to do it?

  • Author

Well since this runs on the JS file by silktide... right now you'd have to grab this: http://s3.amazonaws.com/cc.silktide.com/cookieconsent.latest.min.js

Find this code:

<a data-cc-if="options.link" class="cc_more_info" href="{{options.link || "#null"}}">{{options.learnMore}}</a>

Add the target property to the link, save the JS file, upload it somewhere, and modify the xml file to call your edited JS file instead of the original one.

I'll see If I can add a setting for it.

Well since this runs on the JS file by silktide... right now you'd have to grab this: http://s3.amazonaws.com/cc.silktide.com/cookieconsent.latest.min.js

Find this code:

<a data-cc-if="options.link" class="cc_more_info" href="{{options.link || "#null"}}">{{options.learnMore}}</a>

Add the target property to the link, save the JS file, upload it somewhere, and modify the xml file to call your edited JS file instead of the original one.

I'll see If I can add a setting for it.

Aha, I get it.
Thought I could modify the xml and it would be finished just liked that.

I will wait for updates then :)  Thnks for the plugin btw, it's great!

@-FP

Is it possible to host javascrpt file on our servers, where we have the forum?

For multi-lingual sites it is not very practical. You can change the text in only one language, the text is not translatable in multiple languages. The 'Got it' button is the same, you can't even change the text (editing the XML would work, but for noob users it would be much better if those frontend texts where also available for translation in the translation manager)

  • Author

There are language strings for the More Info link text and for the Got it button, in fact I translated it to Spanish for my site.

HY. I am not so familiar with IPB. Could you please tell  me where should i have to upload this plugin and is this working for IPB 3.4.6 ? I have tried to uploaded via Hooks but it gave me an error.

 

Thanks.

  • Author

Hi, this is for 4.x.

  • 4 weeks later...

There are language strings for the More Info link text and for the Got it button, in fact I translated it to Spanish for my site.

Yes, but the main message text is only available in one language, it isn't available in the translation manager. Which should be a more convenient place for it.

And also, after upgrading to the latest version, the translated text in the translation manager is deleted by the upgrade proces, making it an extra work to re-translate the strings to the previous state. 

Yes, but the main message text is only available in one language, it isn't available in the translation manager.

Yep, that's the problem on my site too. It's not translating that's the problem but the fact that my site is bilingual and it's only possible to have message text in one language. Users using language 2 should ideally see a message in language 2 too, especially for something like this where you're asking them to consent to something.
  • Author

Alright, I'll work on it to also add the message as a language string.

The issue with the translations being lost when upgrading to a new version has also happened to me using other mods, still trying to figure out how to work around that.

Edited by -FP

  • Author

Ok, updated the plugin, now you can translate the message, I tested it and I think it's doing what you've requested, anyway let me know what you think... translations are still lost when you upload a new version, sorry.

Edited by -FP

Hello.
I'm French and if I want to translate the message with apostrophes inside, it didn't works...
It works only if there aren't apostrophes...

Edited by Micka

On 16/9/2015, -FP said:

Thanks @Micka, fixed.

4K7zyBL.jpg

Nice, thanks! :P 

I'm using it on my multilingual site - thanks, @-FP!

I don't think there's anything you can do about this but ideally if the cookie message changes, then the box should appear again to ask for consent. I know that was a feature of Mark's tutorial on how to create a plugin, but I accept that in this case we're translating language strings rather than creating a new message, the creation of which causes a reset in the database.

It's probably not important anyway - there's not likely to be a need to change the message.

  • Author

Well I'll look into it, it may be possible to do something comparing the date of the current cookie set to hide the message, and the date of the last time the message was modified, supplied by another setting field for instance, I would also have to mess with the JS file provided by silktide... well, we'll see.

  • 4 weeks later...
  • Author

Uploaded a new version.

Option to load the JS from the developer site, or use a local version.

Using the local version decreased my site load time by roughly 300ms, and this should also address the security concerns some users had.

(Translations are still lost, sorry!)

Edited by -FP

Recently Browsing 0

  • No registered users viewing this page.