Not working?

140 views
Skip to first unread message

Marco B

unread,
Jan 28, 2018, 12:10:08 PM1/28/18
to Cookie Control Support
Hi there,

I am on a paid plan, I followed the instructions but it does not seem to work: https://www.getopinon.com

Due to the fact I use wix.com to manage the website, I can't upload the Cookie Control script file via wix.
Therefore I replaced the location of the script with a dropbox link location (where I uploaded the script file).
Would that work? If not, do you see alternatives (if that is the issue)?

Thanks for your help.
Marco

Gerasimos Tzoganis

unread,
Jan 28, 2018, 2:00:36 PM1/28/18
to Cookie Control Support
Hi Marco,

You can serve it from dropbox, but replace "www" in the URL with "dl", as mentioned here. So in your case you can use the URL https://dl.dropboxusercontent.com/s/3h6vu2a3zukepc5/cookieControl-7.2.min.js.

Kind regards,
Gerasimos

Marco B

unread,
Jan 28, 2018, 6:38:42 PM1/28/18
to Cookie Control Support
Thanks, Gerasimos for the quick reply!

I have edited as suggested, and the banner now shows up, however:
1 - the branding does not seem to match the colours chosen (although looking at the code on the page it seems correct)
2 - how can I remove the links / logo of CivicUk, given it's the paid version?
3 - when changing the theme to "dark" still the colour of the text "This site uses cookies to provide you with a personalised experience." remains dark, whcih makes it not readable. Is there a way to change that?

Thanks in advance.
Marco

Marco B

unread,
Jan 28, 2018, 7:38:26 PM1/28/18
to Cookie Control Support
Update: I managed to solve issues 1 and 2 (I found the full documentations, very helpfull!), however I still have problems with issue number 3.
Do you have suggestions?

Thanks
Marco

Gerasimos Tzoganis

unread,
Jan 29, 2018, 3:05:06 AM1/29/18
to Cookie Control Support
Hi Marco,

Glad you managed to resolve the first two issues. For the third, look for the "hex" object in the documentation. This is the property that manages the colours of the different parts of the widget. There are "text" and "links" sub-properties in it, which I think are the ones you are after. Try setting these to "#FFFFFF" for white for example.

I hope this helps.

Kind regards,
Gerasimos

Marco B

unread,
Jan 29, 2018, 5:09:42 AM1/29/18
to Cookie Control Support
Hi Gerasimos,

Here is what I have in production:

    <script src="https://dl.dropbox.com/s/3h6vu2a3zukepc5/cookieControl-7.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
      cookieControl({
          t: {
              title: 'OPIÑON uses cookies to provide you with an improved experience.',
              intro: 'Some of these cookies are essential to make our site work and others help us to improve by giving us some insight into how the site is being used.',
              full:'<p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you\'re not happy with this, we won\'t set these cookies but some nice features on the site may be unavailable.</p><p>To control third party cookies, you can also <a href="http://www.civicuk.com/cookie-control/browser-settings" target="_blank" class="ccc-settings">adjust your browser settings.</a></p><p>By using our site you accept the terms of our <a href="https://www.getopinon.com/privacy">Privacy Policy</a>.</p>'
          },
          position:CookieControl.POS_BOTTOM,
          style:CookieControl.STYLE_BAR,
          theme:CookieControl.THEME_DARK, // light or dark
          startOpen:false,
          autoHide:7000,
          subdomains:true,
          protectedCookies: [], // list the cookies you do not want deleted, for example ['analytics', 'twitter']
          apiKey: 'a711df0ea097d75a144c8f811bc8fddbd43e49e7',
          product: CookieControl.PROD_PAID,
          consentModel: CookieControl.MODEL_IMPLICIT,
          onAccept:function(){ccAddAnalytics()},
          onReady:function(){},
          onCookiesAllowed:function(){ccAddAnalytics()},
          onCookiesNotAllowed:function(){},
          branding:false,
hex: {
              branding: '#FFFFFF',
              buttons: '#0097FC',
              links: '#FFFFFF',
              text: '#FFFFFF',
              bar: '#454545',
              buttons: '#0097FC',
              buttonsHover: '#0097FC'
            },
          countries:'' // Or supply a list, like ['United Kingdom', 'Greece']
          });
    
          function ccAddAnalytics() {
            jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
              var GATracker = _gat._createTracker('UA-7540427-2');
              GATracker._trackPageview();
            });
          }
       //]]>
    </script>



You can see both are set as suggested.
Still, the text of the Title looks dark. You can check here: https://www.getopinon.com 
Any idea?

Thanks
Marco

Gerasimos Tzoganis

unread,
Jan 29, 2018, 5:27:26 AM1/29/18
to Cookie Control Support
Hi Marco,

I see all texts in white, have you tried clearing your cache? Maybe wix is a bit too persistent in its caching.

Kind regards,
Gerasimos

Marco B

unread,
Jan 29, 2018, 4:46:24 PM1/29/18
to Cookie Control Support
HI Gerasimos

Yes I did delete the cache.
I also see the introduction and long description in white BUT, if you just look at the bar, the Title is in dark colour. 
Here is a screenshot: https://cl.ly/06282G3G0v3O
(I have highlighted the Title text so you can easily find it).

Any idea what's wrong in the code I published?
Thanks
Marco

Gerasimos Tzoganis

unread,
Jan 30, 2018, 3:46:15 AM1/30/18
to Cookie Control Support
Hi Marco,

I'm not sure what causes that, I just did a quick test and the "text" property of the "hex" object should cover the text on the bar too. 

I viewed the source on your page though and noticed Cookie Control is loaded twice. Can you remove one of the two initialisations and see if that fixes it?

Gerasimos

Marco B

unread,
Feb 1, 2018, 11:16:34 AM2/1/18
to Cookie Control Support
Hi Gerasimos

Apparently it's inserted twice by Wix (have no way to control that unfortunately as I added it in the Tracking section of Wix).

I tried to remove it from there (so to follow through your suggestion), and hard code it in the footer, but I get the CivicUK API error.

For the time being, I turned it to white (although not sure happy with how it looks).

If you have suggestions please do let me know.
Thanks
Marco
Reply all
Reply to author
Forward
0 new messages