[Resolved] Quantcast header

Home Forums Support [Resolved] Quantcast header

Home Forums Support Quantcast header

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1127462
    Jagoba

    Hi there,
    I’m trying to add code in GP Hooks on “wp_head” and not works. Could you help me please? Is that one (script+styles):

    <!– Quantcast Choice. Consent Manager Tag –>
    <script type=”text/javascript” async=true>
    var elem = document.createElement(‘script’);
    elem.src = ‘https://quantcast.mgr.consensu.org/cmp.js&#8217;;
    elem.async = true;
    elem.type = “text/javascript”;
    var scpt = document.getElementsByTagName(‘script’)[0];
    scpt.parentNode.insertBefore(elem, scpt);
    (function() {
    var gdprAppliesGlobally = false;
    function addFrame() {
    if (!window.frames[‘__cmpLocator’]) {
    if (document.body) {
    var body = document.body,
    iframe = document.createElement(‘iframe’);
    iframe.style = ‘display:none’;
    iframe.name = ‘__cmpLocator’;
    body.appendChild(iframe);
    } else {
    // In the case where this stub is located in the head,
    // this allows us to inject the iframe more quickly than
    // relying on DOMContentLoaded or other events.
    setTimeout(addFrame, 5);
    }
    }
    }
    addFrame();
    function cmpMsgHandler(event) {
    var msgIsString = typeof event.data === “string”;
    var json;
    if(msgIsString) {
    json = event.data.indexOf(“__cmpCall”) != -1 ? JSON.parse(event.data) : {};
    } else {
    json = event.data;
    }
    if (json.__cmpCall) {
    var i = json.__cmpCall;
    window.__cmp(i.command, i.parameter, function(retValue, success) {
    var returnMsg = {“__cmpReturn”: {
    “returnValue”: retValue,
    “success”: success,
    “callId”: i.callId
    }};
    event.source.postMessage(msgIsString ?
    JSON.stringify(returnMsg) : returnMsg, ‘*’);
    });
    }
    }
    window.__cmp = function (c) {
    var b = arguments;
    if (!b.length) {
    return __cmp.a;
    }
    else if (b[0] === ‘ping’) {
    b[2]({“gdprAppliesGlobally”: gdprAppliesGlobally,
    “cmpLoaded”: false}, true);
    } else if (c == ‘__cmp’)
    return false;
    else {
    if (typeof __cmp.a === ‘undefined’) {
    __cmp.a = [];
    }
    __cmp.a.push([].slice.apply(b));
    }
    }
    window.__cmp.gdprAppliesGlobally = gdprAppliesGlobally;
    window.__cmp.msgHandler = cmpMsgHandler;
    if (window.addEventListener) {
    window.addEventListener(‘message’, cmpMsgHandler, false);
    }
    else {
    window.attachEvent(‘onmessage’, cmpMsgHandler);
    }
    })();
    window.__cmp(‘init’, {
    ‘Language’: ‘es’,
    ‘Initial Screen Title Text’: ‘Tu privacidad es importante para nosotros’,
    ‘Initial Screen Reject Button Text’: ‘NO ACEPTO’,
    ‘Initial Screen Accept Button Text’: ‘ACEPTO’,
    ‘Initial Screen Purpose Link Text’: ‘Mostrar objetivos’,
    ‘Purpose Screen Title Text’: ‘Tu privacidad es importante para nosotros’,
    ‘Purpose Screen Body Text’: ‘Puede establecer sus preferencias de consentimiento y determinar cómo desea que se utilicen sus datos según los fines que se detallan a continuación. Puede establecer sus preferencias con respecto a nosotros independientemente de las de los socios externos. Cada objetivo tiene una descripción para que sepa cómo nosotros y los socios usamos sus datos.’,
    ‘Purpose Screen Vendor Link Text’: ‘Visualizza i fornitori’,
    ‘Purpose Screen Cancel Button Text’: ‘Cancelar’,
    ‘Purpose Screen Save and Exit Button Text’: ‘Guardar y salir’,
    ‘Vendor Screen Title Text’: ‘Tu privacidad es importante para nosotros’,
    ‘Vendor Screen Body Text’: ‘Puede configurar las preferencias de consentimiento para los terceros externos individuales con los que trabajamos a continuación. Expanda cada elemento de la lista de la compañía para ver para qué fines usan los datos para ayudarlo a tomar sus decisiones. En algunos casos, las compañías pueden usar sus datos sin pedir su consentimiento en función de sus intereses legítimos. Puede hacer clic en los enlaces de sus políticas de privacidad para obtener más información y para objetar dicho procesamiento.’,
    ‘Vendor Screen Accept All Button Text’: ‘ACEPTAR TODO’,
    ‘Vendor Screen Reject All Button Text’: ‘RECHAZAR TODO’,
    ‘Vendor Screen Purposes Link Text’: ‘Volver a los propósitos’,
    ‘Vendor Screen Cancel Button Text’: ‘Cancelar’,
    ‘Vendor Screen Save and Exit Button Text’: ‘Guardar y salir’,
    ‘Initial Screen Body Text’: ‘Nosotros y nuestros socios utilizamos tecnologías, como las cookies, y procesamos datos personales, como las direcciones IP y los identificadores de cookies, para personalizar los anuncios y el contenido según sus intereses, medir el rendimiento de los anuncios y el contenido y obtener información sobre las audiencias que vieron los anuncios y el contenido. Haga clic a continuación para autorizar el uso de esta tecnología y el procesamiento de sus datos personales para estos fines. Puede cambiar de opinión y cambiar sus opciones de consentimiento en cualquier momento al regresar a este sitio.’,
    ‘Initial Screen Body Text Option’: 1,
    ‘Publisher Name’: ‘IdeandoAzul’,
    ‘Min Days Between UI Displays’: 90,
    ‘Publisher Logo’: ‘https://ideandoazul.com/wp-content/uploads/2018/03/Logo-completo-azul.png&#8217;,
    ‘Publisher Purpose IDs’: [1,2,3,4,5],
    ‘Consent Scope’: ‘service’,
    ‘Post Consent Page’: ‘https://web.facebook.com/ideandoazul/&#8217;,
    ‘UI Layout’: ‘banner’,
    ‘No Option’: false,
    });
    </script>
    <!– End Quantcast Choice. Consent Manager Tag –>
    <style>
    .qc-cmp-button {
    background-color: #509fc9 !important;
    border-color: #509fc9 !important;
    }
    .qc-cmp-button:hover {
    background-color: transparent !important;
    border-color: #509fc9 !important;
    }
    .qc-cmp-alt-action,
    .qc-cmp-link {
    color: #509fc9 !important;
    }
    .qc-cmp-button.qc-cmp-secondary-button:hover
    {
    border-color: transparent !important;
    background-color: #509fc9 !important;
    }
    .qc-cmp-button {
    color: #ffffff !important;
    }
    .qc-cmp-button.qc-cmp-secondary-button {
    color: #ffffff !important;
    }
    .qc-cmp-button.qc-cmp-button.qc-cmp-secondary-button:hover {
    color:#ffffff !important;
    }
    .qc-cmp-button.qc-cmp-secondary-button {
    border-color: #000000 !important;
    background-color: #000000 !important;
    }
    .qc-cmp-ui,
    .qc-cmp-ui .qc-cmp-main-messaging,
    .qc-cmp-ui .qc-cmp-messaging,
    .qc-cmp-ui .qc-cmp-beta-messaging,
    .qc-cmp-ui .qc-cmp-title,
    .qc-cmp-ui .qc-cmp-sub-title,
    .qc-cmp-ui .qc-cmp-purpose-info,
    .qc-cmp-ui .qc-cmp-table,
    .qc-cmp-ui .qc-cmp-table-header,
    .qc-cmp-ui .qc-cmp-vendor-list,
    .qc-cmp-ui .qc-cmp-vendor-list-title {
    color: #ffffff !important;
    }
    .qc-cmp-ui a,
    .qc-cmp-ui .qc-cmp-alt-action,
    .qc-cmp-toggle-status {
    color: #509fc9 !important;
    }
    .qc-cmp-ui {
    background-color: #ffffff !important;
    }
    .qc-cmp-publisher-purposes-table .qc-cmp-table-header {
    background-color: #ffffff !important;
    }
    .qc-cmp-publisher-purposes-table .qc-cmp-table-row {
    background-color: #ffffff !important;
    }
    .qc-cmp-vendor-list .qc-cmp-vendor-row {
    background-color: #ffffff !important;
    }
    .qc-cmp-vendor-list .qc-cmp-vendor-row-header {
    background-color: #ffffff !important;
    }
    .qc-cmp-table {
    border: 1px solid #000000 !important;
    }
    .qc-cmp-table-row {
    border-top: 1px solid #000000 !important;
    }
    .qc-cmp-table-row:last-child {
    border-bottom: 1px solid #000000 !important;
    }
    .qc-cmp-toggle-status {
    color: #000000 !important;
    }
    .qc-cmp-arrow-down {
    background: url(“data:image/svg+xml,%3Csvg xmlns=’http://www.w3.org/2000/svg&#8217; viewBox=’0 0 16 16′ fill=’none’ stroke=’#000000′ stroke-width=’2′ stroke-linecap=’round’ stroke-linejoin=’round’%3E %3Cpolyline points=’2 5 8 11 14 5’/%3E %3C/svg%3E”) center no-repeat;
    }
    .qc-cmp-small-toggle.qc-cmp-toggle-on,
    .qc-cmp-toggle.qc-cmp-toggle-on {
    background-color: #509fc9 !important;
    border-color: #509fc9 !important;
    }
    </style>

    #1127668
    David
    Staff
    Customer Support

    Hi there,

    when i visit your site I see the Consent Manager popup – so it looks like it is working. Let me know.

    #1130129
    Jagoba

    Hi David,
    I don’t know why but I can not see any Consent Manager popup.

    #1130411
    David
    Staff
    Customer Support

    This is what i see:

    Try it from a private browser or on a different network.

    #1131156
    Jagoba

    Hi David,
    I try it both ways and I can’t see. Also in your screenshot I see that is not the text that it should appear.
    I don’t know what to do.
    Thanks so much for your help

    #1131400
    David
    Staff
    Customer Support

    There is text there, it is displayed in #ffffff White so can’t be seen – this is due the to the CSS styles in the quantcast code. I assume this is part of the quantcast settings?

    Other then plugin/server caches i can’t explain why you would not be seeing it – aside from a cookie/setting that blocks it from your IP/Devices.

    #1131423
    Jagoba

    Yes. I fighting with navigator and cache plugins but nothing. Now I change the font color … could you please tell me if you say correctly?
    Thanks in advance

    Iago

    #1131502
    David
    Staff
    Customer Support

    Now i see:

    #1131505
    Jagoba

    Thanks so much David!!!!

    #1131506
    David
    Staff
    Customer Support

    You’re welcome

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.