-FP Posted August 1, 2015 Posted August 1, 2015 (edited) 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 August 1, 2015 by -FP Simon Woods and sofos 2
Michel_72 Posted August 1, 2015 Posted August 1, 2015 Great! If it could do adsense as well, we would be getting somewhere
-FP Posted August 1, 2015 Author Posted August 1, 2015 For adsense what do you want, disable interest based ads?
Michel_72 Posted August 1, 2015 Posted August 1, 2015 (edited) 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/DoubleClickFacebook ConnectGoogle AdsenseGoogle AnalyticsGoogle+ PlatformGravatarAs 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 August 1, 2015 by Michel_72
-FP Posted August 1, 2015 Author Posted August 1, 2015 (edited) 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 August 1, 2015 by -FP
Michel_72 Posted August 1, 2015 Posted August 1, 2015 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.
Kurdism Posted August 12, 2015 Posted August 12, 2015 Can I modify the xml file to change the "More info" link target to "_blank"?If yes, how to do it?
-FP Posted August 12, 2015 Author Posted August 12, 2015 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.jsFind 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. Kurdism 1
Kurdism Posted August 13, 2015 Posted August 13, 2015 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!
Marius Posted August 15, 2015 Posted August 15, 2015 @-FPIs it possible to host javascrpt file on our servers, where we have the forum? ipbfuck 1
-FP Posted August 15, 2015 Author Posted August 15, 2015 @Marius yes, grab this: http://s3.amazonaws.com/cc.silktide.com/cookieconsent.latest.min.jsUpload it to your server, then edit the plugin XML file, find and replace that URL with the one in your server. Save the file and upload the plugin.
Sander Vancanneyt Posted August 16, 2015 Posted August 16, 2015 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) ipbfuck 1
-FP Posted August 16, 2015 Author Posted August 16, 2015 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.
matzu_2003 Posted August 19, 2015 Posted August 19, 2015 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.
Sander Vancanneyt Posted September 13, 2015 Posted September 13, 2015 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. -FP and Meddysong 2
Meddysong Posted September 14, 2015 Posted September 14, 2015 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. Sander Vancanneyt and -FP 2
-FP Posted September 14, 2015 Author Posted September 14, 2015 (edited) 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 September 14, 2015 by -FP Sander Vancanneyt and Meddysong 2
-FP Posted September 14, 2015 Author Posted September 14, 2015 (edited) 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 September 14, 2015 by -FP Meddysong 1
Babounet Posted September 16, 2015 Posted September 16, 2015 (edited) 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 September 16, 2015 by Micka
Babounet Posted September 18, 2015 Posted September 18, 2015 On 16/9/2015, -FP said: Thanks @Micka, fixed. Nice, thanks!
Meddysong Posted September 18, 2015 Posted September 18, 2015 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.
-FP Posted September 18, 2015 Author Posted September 18, 2015 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. Meddysong 1
-FP Posted October 11, 2015 Author Posted October 11, 2015 (edited) 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 October 11, 2015 by -FP
Recommended Posts