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":"thrifting","pageType":"other","google_tag_params":{"ecomm_pagetype":"other"}}]; for (var i in dlObjects) { 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. The 12 Steps to a Greener Christmas

    The 12 Steps to a Greener Christmas
    Read more »
  2. Guest Blog - Katie Donohoe Dublin Simon Community

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

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

    Our Packaging & How to Be Zero-Waste
    Read more »
  5. Our Top Three Thrifting Tips

    Our Top Three Thrifting Tips
    Read more »
Copyright © 2022 Thriftify Technologies. All rights reserved