User ID Disclosure
    • 4 Minutes to read
    • Dark
      Light

    User ID Disclosure

    • Dark
      Light

    Article summary

    The General Data Protection Regulation (GDPR) regulates data protection within the European Economic Area.

    To enable your users to use the "right of access", you need the unique cookieID (EID) of your user.

    By using this plugin you can create functionality on your website for your users to access their cookieID.

    Mapp can only provide data if you provide the ID of your user.

    Methods and properties

    name

    Get the name of the extension.

    /**
     * @type {string}
     */
    wtSmart.extension.identifier_disclosure.name;

    version

    Get the version of the extension.

    /**
     * @type {string}
     */
    wtSmart.extension.identifier_disclosure.version;

    getEverIDs

    The "User ID Disclosure" extension searches on the current page and returns for each used trackId the belonging cookieId (EID).

    /**
     * @param {(function(status: number, data: object))} callback
     */
    wtSmart.extension.identifier_disclosure.getEverIDs(callback);

    Status

    Description

    0

    There are no problems

    1

    The extension is collecting the Mapp data

    2

    Missing Mapp track ID orr track domain

    3

    Server timeout (5000ms) for account XXXXX

    4

    Server error for account XXXXX

    5

    EID not found for account XXXXX

    Integration

    The website where this extension is integrated must have a running tracking pixel and the plugin should be executed after the pixel is configured or the track request was sent.

    <script type="text/javascript" async src="js/loader.min.js"></script>
    <script type="text/javascript">
        window.wtSmart = window.wtSmart || [];
        window.wtSmart.push(function(wtSmart) {
            // set initial tracking config
            wtSmart.init.set({
                trackId: '###Mapp Intelligence TrackID###',
                trackDomain: '###Mapp Intelligence TrackDomain###',
    			cookie: '###cookie option###'
            });
        });
    </script>
    <script type="text/javascript">
        // The content of your "User ID Disclosure" extension is placed here
    </script

    Example

    <html>
        <head>
            <title>GDPR example page</title>
            <script type="text/javascript" src="js/loader.min.js"></script>
            <script type="text/javascript">
                window.wtSmart = window.wtSmart || [];
                window.wtSmart.push(function(pix) {
                    pix.init.set({
                        trackId: '123451234512345',
                        trackDomain: 'analytics01.wt-eu02.net',
                        cookie: '3'
                    });
                });
            </script>
            <script type="text/javascript">
                var readWebtrekkEIDs = function() {
                    window.wtSmart.push(function(pix) {
                        pix.extension['identifier_disclosure'].getEverIDs(function(status, data) {
                            if (status === 1) {
                                alert('Do nothing, because the plugin is collecting the Webtrekk data!');
                            }
                            else if (status === 2) {
                                alert('Webtrekk tracking isn\'t integrated or was blocked!');
                            }
                            else {
                                // is relevant for customers with 3rd party cookies
                                if (status === 3) {
                                    alert('Server timeout (5000ms) for account XXXXX');
                                }
                                else if (status === 4) {
                                    alert('Server error for account XXXXX');
                                }
                                else if (status === 5) {
                                    alert('EID not found for account XXXXX');
                                }
    
                                var collectedEIDs = '';
                                for (var trackId in data) {
                                    collectedEIDs += trackId + ': ' + data[trackId] + '\n';
                                }
    
                                if (collectedEIDs) {
                                    alert(collectedEIDs);
                                }
                            }
                        });
                    });
                };
            </script>
        </head>
        <body>
            <a href="#" onclick="readWebtrekkEIDs()">Click here to read Mapp Intelligence EIDs</a>
        </body>
    </html>


    Was this article helpful?

    What's Next