• Hi there! As an Elementor Pro user, I made a pop-up using the shortcode. Everything works as expected (it would be great if the Display Conditions included Complianz options sometime, but that’s beside the point).

    What I’m trying to accomplish is to use the documented cookie cmplz_choice to see if a user has specified their preferences (a choice) or not. But whatever I do, I can’t seem to find this cookie in the network tab or using document.cookie.

    The cookies set without choosing anything (but pop-up with shortcode is shown):
    – cmplz_functional:”allow”
    – cmplz_policy_id:”13″
    – cmplz_statistics-anonymous:”allow”

    An example of the cookies set after clicking ‘Accept all’
    – cmplz_consent_status:”allow”
    – cmplz_functional:”allow”
    – cmplz_marketing:”allow”
    – cmplz_policy_id:”13″
    – cmplz_preferences:”allow”
    – cmplz_statistics-anonymous:”allow”
    – cmplz_statistics:”allow”

    Am I missing something here? Could it be possible that the cookie is only set using the non-shortcode cookiewall? Or is there possibly another way to check if the user has ‘chosen’ something?

    Technical stuff:

    
    ### wp-core ###
    
    version: 5.8
    site_language: nl_NL
    user_language: nl_NL
    timezone: Europe/Amsterdam
    permalink: /%category%/%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: undefined
    environment_type: production
    user_count: 11
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    // hidden
    
    ### wp-dropins (2) ###
    
    advanced-cache.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    // hidden
    
    ### wp-themes-inactive (1) ###
    
    // hidden
    
    ### wp-mu-plugins (5) ###
    
    Force Strong Passwords - WPE Edition: version: 1.6.4, author: Jason Cosper
    WPE ElasticPress Autosuggest Logger: version: 1.0.0, author: WP Engine
    WP Engine Seamless Login Plugin: version: 1.5.5, author: WP Engine
    WP Engine Security Auditor: version: 1.0.10, author: wpengine
    WP Engine System: version: 4.1.0, author: WP Engine
    
    ### wp-plugins-active (18) ###
    
    Advanced Custom Fields: version: 5.10.2, author: Delicious Brains, Auto-updates disabled
    Autoptimize: version: 2.9.2, author: Frank Goossens (futtta), Auto-updates disabled
    Complianz | GDPR/CCPA Cookie Consent: version: 5.3.0.1, author: Really Simple Plugins, Auto-updates disabled
    Ele Custom Skin: version: 3.1.3, author: Dudaster.com, Auto-updates disabled
    Elementor: version: 3.3.1, author: Elementor.com (latest version: 3.4.3), Auto-updates disabled
    Elementor Pro: version: 3.3.1, author: Elementor.com (latest version: 3.4.1), Auto-updates disabled
    HubSpot All-In-One Marketing - Forms, Popups, Live Chat: version: 8.4.90, author: HubSpot, Auto-updates disabled
    Limit Login Attempts Reloaded: version: 2.23.1, author: Limit Login Attempts Reloaded, Auto-updates disabled
    Polylang Connect for Elementor: version: 1.0.6, author: David Decker - DECKERWEB, Auto-updates disabled
    Polylang Pro: version: 3.0.6, author: WP SYNTEX (latest version: 3.1.1), Auto-updates disabled
    Regenerate Thumbnails: version: 3.1.5, author: Alex Mills (Viper007Bond), Auto-updates disabled
    Simple History: version: 2.42.0, author: P?r Thernstr?m, Auto-updates disabled
    SVG Support: version: 2.3.19, author: Benbodhi, Auto-updates disabled
    Widget Options: version: 3.7.9, author: Widget Options Team, Auto-updates disabled
    WP Engine Smart Plugin Manager: version: 5.3.1, author: WP Engine, Auto-updates disabled
    Yoast Duplicate Post: version: 4.1.2, author: Enrico Battocchi & Team Yoast, Auto-updates disabled
    Yoast SEO: version: 17.0, author: Team Yoast, Auto-updates disabled
    Yoast SEO Premium: version: 17.0, author: Team Yoast, Auto-updates disabled
    
    ### wp-plugins-inactive (2) ###
    
    Polylang: version: 3.1.1, author: WP SYNTEX, Auto-updates disabled
    Query Monitor: version: 3.7.1, author: John Blackbourn, Auto-updates disabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1687
    imagemagick_version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 https://www.imagemagick.org
    imagick_version: 3.4.4
    file_uploads: File uploads is turned off
    post_max_size: 100M
    upload_max_filesize: 50M
    max_effective_size: 50 MB
    max_file_uploads: 20
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 137 MB
    	imagick::RESOURCETYPE_DISK: 1073741824
    	imagick::RESOURCETYPE_FILE: 6144
    	imagick::RESOURCETYPE_MAP: 512 MB
    	imagick::RESOURCETYPE_MEMORY: 256 MB
    	imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: 2.2.5
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: unknown
    
    ### wp-server ###
    
    server_architecture: Linux 5.4.0-1043-gcp x86_64
    httpd_software: Apache
    php_version: 7.4.23 64bit
    php_sapi: apache2handler
    max_input_variables: 10000
    time_limit: 3600
    memory_limit: 512M
    max_input_time: 3600
    upload_max_filesize: 50M
    php_post_max_size: 100M
    curl_version: 7.58.0 OpenSSL/1.1.1
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.35-38-log
    client_version: mysqlnd 7.4.23
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: //hidden
    WP_PLUGIN_DIR: //hidden
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8
    DB_COLLATE: utf8_unicode_ci
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    ### pll_options ###
    
    browser: true
    rewrite: 1
    hide_default: 1
    force_lang: 1
    redirect_lang: 1
    media_support: 0
    sync: taxonomies, comment_status, ping_status, sticky_posts, post_date, post_format, post_parent, _wp_page_template, menu_order, _thumbnail_id
    post_types: 0
    taxonomies: 0
    domains: 0
    version: 3.0.6
    default_lang: nl
    primary_navigation: en => 37 | nl => 38
    previous_version: 3.0.5
    
    ### pll_language_en ###
    
    term_id: 2
    name: English
    slug: en
    term_group: 0
    term_taxonomy_id: 2
    count: 31
    tl_term_id: 3
    tl_term_taxonomy_id: 3
    tl_count: 3
    locale: en_GB
    is_rtl: 0
    w3c: en-GB
    facebook: en_GB
    home_url: //hidden
    search_url: //hidden
    mo_id: 11
    page_on_front: 2698
    page_for_posts: 0
    flag_code: gb
    flag_url: //hidden
    custom_flag_url: 0
    fallbacks: 0
    
    ### pll_language_nl ###
    
    term_id: 5
    name: Nederlands
    slug: nl
    term_group: 0
    term_taxonomy_id: 5
    count: 61
    tl_term_id: 6
    tl_term_taxonomy_id: 6
    tl_count: 8
    locale: nl_NL
    is_rtl: 0
    w3c: nl-NL
    facebook: nl_NL
    home_url: //hidden
    search_url: //hidden
    mo_id: 12
    page_on_front: 381
    page_for_posts: 0
    flag_code: nl
    flag_url: //hidden
    custom_flag_url: 0
    fallbacks: 0
    
    

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @killedmufasa,

    The cookie cmplz_choice is currently only set in the Premium version, when certain features have been enabled.

    We will address this in the next update (to be released soon), so that this specific Cookie will also be available in Complianz Free.

    Kind regards,
    Jarno

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @killedmufasa this branch sets the cookie also without a/b testing or records of consent enabled.

    https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/cmplz_choice-without-ab-testing

    Let me know if this resolves your issue.

    Thread Starter killedmufasa

    (@killedmufasa)

    Hi again! Thanks a lot for making the cookie available to non-premium users and so quickly! I can confirm the cookie is now always set (or at least with my settings).

    However, it does behave differently than I had anticipated. According to my testing on both the site I’m working on and complianz.io (using isolated containers), the cookie cmplz_choice is always set to set. As an EU citizen, I would have expected for the cookie to default to something like no_choice (see: https://github.com/Really-Simple-Plugins/complianz-gdpr/blob/cmplz_choice-without-ab-testing/assets/js/complianz.js).

    Your docs describe the cookie as such: “tells us if the user has made a choice or not”. But even when I haven’t made any choices yet, it’s set to set. Am I misunderstanding what this cookie does? Otherwise, what’s the point of the cookie if it is always set to the same value?

    Thanks!

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I’m sorry, I now realise the ‘choice’ cookie doesn’t do what you need. The name ‘cmplz_choice’ is not a very good one. It just checks if an initial status has been set. If it’s not set, it will be set straight away. This means the cookie will get set with a ‘set’ value as soon as the page loads.

    What you can do is to check if cmplz_statistics or cmplz_marketing is either ‘allow’ or ‘deny’. If it’s empty, no choice has been made yet.

    However, we’re about starting to test with our 6.0 release, which will offer this with a simple cmplzGetBannerStatus() function, which is either ‘dismissed’ or ‘show’.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @killedmufasa,

    Can we provide any further assistance in the meantime? Just let us know if any further questions arise.

    Kind regards,
    Jarno

    Thread Starter killedmufasa

    (@killedmufasa)

    Hi again! Thanks for the amazing support so far, thank you! Sorry about the confusion with the cmplz_choice cookie, looks like I indeed misunderstood its function. Perhaps you could consider updating the docs to clarify its function?

    What you can do is to check if cmplz_statistics or cmplz_marketing is either ‘allow’ or ‘deny’. If it’s empty, no choice has been made yet.

    That seems like a very neat solution, thx! Although, I gotta say cmplzGetBannerStatus() sounds much easier to work with. Speaking of, will it work with the shortcode too?

    Other than that, no further help needed. Is it okay/handy if I keep the thread marked as ‘unresolved’ until v6 releases?

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing cmplz_choice cookie (unable to check for consent choices)’ is closed to new replies.