window.getWpCookie = function(name) { match = document.cookie.match(new RegExp(name + '=([^;]+)')); if (match) return decodeURIComponent(match[1].replace(/\+/g, ' ')) ; }; window.dataLayer = window.dataLayer || []; var dlObjects = [{"pageName":"sustainability","pageType":"other","google_tag_params":{"ecomm_pagetype":"other"}}]; for (var i in dlObjects) { window.dataLayer.push({ecommerce: null}); window.dataLayer.push(dlObjects[i]); } var wpCookies = ['wp_customerId','wp_customerGroup']; wpCookies.map(function(cookieName) { var cookieValue = window.getWpCookie(cookieName); if (cookieValue) { var dlObject = {}; dlObject[cookieName.replace('wp_', '')] = cookieValue; window.dataLayer.push(dlObject); } });
  1. Guest Blog - Katie Donohoe Dublin Simon Community

    Guest Blog - Katie Donohoe Dublin Simon Community
    Read more »
  2. What is Sustainable Fashion?

    What is Sustainable Fashion?
    Read more »
  3. Our Packaging & How to Be Zero-Waste

    Our Packaging & How to Be Zero-Waste
    Read more »
  4. Thriftify's Irish Summer Guide

    Thriftify's Irish Summer Guide
    Read more »
Copyright © 2022 Thriftify Technologies. All rights reserved