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":"Sustainable Living","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. 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. System Change & a Hedgehog - the story of Thriftify

    System Change & a Hedgehog - the story of Thriftify
    Read more »
  6. Our Top Three Thrifting Tips

    Our Top Three Thrifting Tips
    Read more »
  7. Thriftify's Irish Summer Guide

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