Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 1, 20159 yr 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, 20159 yr by -FP
August 1, 20159 yr 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, 20159 yr by Michel_72
August 1, 20159 yr 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 August 1, 20159 yr by -FP
August 1, 20159 yr 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.
August 12, 20159 yr Can I modify the xml file to change the "More info" link target to "_blank"?If yes, how to do it?
August 12, 20159 yr 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.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.
August 13, 20159 yr 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!
August 15, 20159 yr @-FPIs it possible to host javascrpt file on our servers, where we have the forum?
August 15, 20159 yr Author @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.
August 16, 20159 yr 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)
August 16, 20159 yr 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.
August 19, 20159 yr 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.
September 13, 20159 yr 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.
September 14, 20159 yr 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.
September 14, 20159 yr 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 September 14, 20159 yr by -FP
September 14, 20159 yr 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 September 14, 20159 yr by -FP
September 16, 20159 yr 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, 20159 yr by Micka
September 18, 20159 yr 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.
September 18, 20159 yr 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.
October 11, 20159 yr 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 October 11, 20159 yr by -FP