(function(w){ var config = {"metricsLabels":{"contentBoards":"TR Content Board","personalizations":"TR Personalization","audiences":"TR Audience","campaigns":"TR Campaign"},"hitTypes":{"contentBoards":"event","audiences":"event","personalizations":"event","campaigns":"event"},"shouldTrackOrgAssets":true,"firmTrackProvider":"ga","triblioVisitorId":"Ab0t2FfAvqqC0MebeFiyWOHj","gaObjectAlias":"ga"}; var triblioVisitorId = config.triblioVisitorId; var firmographicRecord = {"name":"Google, LLC","sicCode":7375,"isIsp":false,"employees":"25,000+","revenue":"$1,000,000,000+","country":"United States","domain":"google.com","naicCode":517810,"employeesCode":11,"revenueCode":9,"region":"California","city":"Mountain View","subIndustry":"N/A","industry":"Telecommunications"}; var shouldTrackOrgAssets = config.shouldTrackOrgAssets; var eIdsToNames = {"personalizations":{"6zxE":"Intro Hotlist Edwin - OTT TV Video","O235":"CPG Facebook Advertisers Piece - MAR - TR - 2022 - 7 Things to Know About Advertising on Retail Sites - April - ABM Campaign Q2 - 2022","Q3nq":"MEDIARADAR – MRAB Q2 2022 Personalized Outreach - Agency Holding Company","ja5X":"2022 - ABM Intro Campaign part 3 - OTT/VIDEO/TV","Dj4D":"MRAB - Q2 2022 Independent Agency Triblio Campaign Marketing Plan - ABM CONTROL GROUP","MlJL":"2022 - Ad Tech ABM - Round 2 - Triblio","D9zL":"Q2 2022 RETAIL Apparel GROUP: List of Apparel and Accessories Brands Piece","qazl":"ABM Intro Campaign Enthusiasts - Triblio","O3EP":"BDR Whale campaign 2022","3w9g":"MEDIARADAR - Q3 2022 - ABM Intro Campaign Regional","go8x":"Q2 - 2022 - Uber Activation - NewFronts Only","O2Ze":"Q2 2022 - CPG Enrollment List - Triblio","zglA":"Independent Agency Campaign Q1 2022","3WBk":"Q2 - 2022 - MRAB - Uber Activation - NewFronts & Upfronts"},"campaigns":{"254E":"2022 - ABM Intro Campaign part 3 - OTT/VIDEO/TV","4XoK":"Q2 2022 RETAIL Apparel GROUP: List of Apparel and Accessories Brands Piece","k4WL":"BDR Whale Account Campaign October 2022","vY4R":"ABM Intro Campaign Enthusiasts - Triblio","BaxP":"2022 - Ad Tech ABM - Round 2 - Triblio","O4xZ":"MEDIARADAR – MRAB Q2 2022 Personalized Outreach - Agency Holding Company","5qZ1":"Intro Hot List - Edwin - OTT TV Video","AW1e":"CPG Trend Report Piece - MAR - TR - 2022 - 7 Things to Know About Advertising on Retail Sites - April - ABM Campaign Q2 - 2022","LQzA":"CPG Facebook Advertisers Piece - MAR - TR - 2022 - 7 Things to Know About Advertising on Retail Sites - April - ABM Campaign Q2 - 2022","np0K":"MAR - Email - 2022 - MRAB Uber Upfronts Activation - April","5qg4":"Independent Agency Campaign Q1 2022 + Take 2 + Ops Collected Names & LDT","qEeL":"MRAB - Q2 2022 Independent Agency Triblio Campaign Marketing Plan - ABM CONTROL GROUP","b4Bj":"MEDIARADAR - Q3 2022 - ABM Intro Campaign Regional"},"contentHubs":{},"audiences":{"Bea3":"Retail Trend Report Piece - MAR - TR - 2022 - 7 Things to Know About Advertising on Retail Sites - April - ABM Campaign Q2 - 2022","bjAj":"2022 - Ad Tech ABM - Round 2 - Triblio","PZex":"MEDIARADAR – MRAB - Q2 2022 Independent Agency Triblio Campaign Marketing Plan - ABM - CONTROL GROUP","g9vB":"test rep audience","53v4":"MR - Retail Apparel Campaign - ABM Campaign Q2 2022 - Retail Trend Report Piece","knej":"consumer test","zlz2":"Domain Exclusion","kZmk":"All Salesforce Accounts","WYRv":"MRAB - demo request for Holding Companies ABM Campaign","YBdO":"@DataSync","vLQ5":"Sales Activation - Edwin Accounts","oA3g":"MR - Intro ABM campaign - AdTech","88jM":"Q2 2022 - Apparel and Accessories Ad Trends Blog Enrollment List - Triblio","E9Eb":"MEDIARADAR – MRAB Q2 2022 Personalized Outreach - Agency Holding Company","k3XX":"Q2 2022 - CPG Enrollment List - Triblio","k1nL":"MAR - Email - 2022 - ABM Intro Campaign OTT/VIDEO/TV - February","GGe8":"MR - Intro ABM campaign - AdTech","GY6v":"Independent Agency January 18 2022 + Take 2 + MRAB Ops List HUBSPOT","7PqR":"Medium Priority Test Group - Triblio","nKeY":"Phase 3- Q2 2022 - list of apparel and accessories advertisers - Triblio","xAva":"training","wAbW":"Independent Agency List January 18 2022","zl5W":"Account_Domain (Triblio)","LYg5":"Newfront Upfront MRAB- Agency HC - April 7th -All Current HC Contacts by Wave - Triblio","lLRO":"Newfront Only MRAB-Agency HC-April 7th - All Current HC Contacts by Wave - Triblio","DXYE":"Intro Hot list - EDWIN - TV/Video/OTT Group","nKDE":"CPG Facebook Advertisers - Triblio","oZbK":"Marketer List January 18 2022 - HUBSPOT","kA72":"MRAB Ops Reviewed List March 17 2022","n8gg":"MAR - Email - 2022 - Programmatic & AdOps - June - Additions - Triblio","bgWO":"Regional Marketing Prospects 071922 SF - Net New - Triblio","QYjv":"Linkedin","qdzJ":"LinkedIn","wBnX":"Programmatic IO Contact List - Triblio","29Do":"TEST","a5J9":"Holding Account Consideration Campaign- Jenn/Edwin - First Stage","n8pK":"ABM Intro Campaign B2B- Triblio","14Rw":"MAR - Email - 2022 - ABM Intro Campaign OTT/VIDEO/TV - July - Tribilo","azvX":"ABM Intro Campaign Enthusiasts - Triblio","eLXb":"ABM Intro Campaign Regional - Triblio","JKmB":"Prediction Webinar 2023 Audience","wR1X":"Consumer Media Webinar","pEvL":"BDR Win Back Campaign October 2022","wRQP":"Consumer Media Webinar Audience ","BE6k":"Win Back Part 1 and 2","JXdK":"OCTOBER 6 Winning is Contagious Webinar Audience","G27D":"BDR Whale Campaign October 2022","7ApR":"SINGLE_ASSET_CPM Insights","OMdw":"Test","86Oa":"Holiday Helper New Business","elje":"Holiday Helper Upsell Campaign","7AGb":"Predictions Webinar 2023 - Second Stage","GOpv":"Predictions Webinar 2023 - Third Stage","KK7k":"Predictions Webinar 2023 - Fourth Stage","AKxe":"CPM Insights - First Stage","o4E3":"Advertising Predictions 2023 - First Stage","dW2n":"2023 Enterprise Audience - First Stage","mkBX":"Consumer Media Webinar ","x5jZ":"Holding Jenn/Edwin accounts ","m52D":"Bombara Intent Campaign 21323","PAGv":"Neon","3bvk":"High Intent Feb 2023","g52x":"High Intent Feb 2023 - First Stage","l52O":"bombora accounts - Second Stage","LwJ5":"bombora accounts - First Stage","JK5j":"CPM Insights","XwlX":"2023 Enterprise Accounts","4Pwg":"Download Funnel Group A","qMkJ":"Download Funnel Group A - First Stage","zLa2":"Download Funnel Group B","Qb3K":"Download Funnel Group B - First Stage","ZoB5":"Regional Media Audience ","vogW":"Regional Media Prospects - First Stage","5WzL":"Enthusiast Media Audience ","x8jB":"Enthusiast Media Prospects - First Stage","aoJ1":"National Consumer Audience","O2bb":"National Consumer Media Prospects - First Stage","KRee":"B2B Clients","0Wj5":"B2B Media Prospects","W7zK":"B2B Media Prospects - First Stage","6WYl":"B2B Media Clients - First Stage","5W6v":"B2B Media Clients - Second Stage","x8o9":"B2B Media Clients - Third Stage","aoKw":"B2B Media Clients - Third Stage","OZOm":"Test - Second Stage","0paq":"Test - Third Stage","wj1k":"Test - Fourth Stage","wm23":"Q4 Making Money Campaign ","XZG2":"Q4 Making Money 2023 - First Stage","da35":"Q4 Making Money 2023 - Second Stage","3WoB":"B2B Clients","vnZ3":"B2B Webinar Invite","J2LE":"B2B Webinar Invite September 2023 - First Stage","7K8K":"B2B Webinar Invite 2 ","YoBv":"B2B Webinar Invite 3 ","G1Yd":"B2B Webinar Invite September 2023 2 - First Stage","6G49":"B2B Webinar Invite September 2023 3 - First Stage","xkJn":"Referral Campaign ","vop3":"Test","JEeE":"Test - First Stage","ampX":"Referral Campaign - First Stage","5YL2":"Referral Campaign ","4E7g":"Media Sellers Expansion Toolkit - Second Stage","DK94":"Media Sellers Expansion Campaign ","MdlL":"Media Sellers Expansion Toolkit - First Stage","nbmK":"Media Sellers Expansion Toolkit - Third Stage"}}; var gaObjectAlias = config.gaObjectAlias; var thirdPartyLibraryLoaded = false; if(!w.Triblio){ w.Triblio = {}; } if(w.Triblio.onAccountIdentificationReady){ w.Triblio.onAccountIdentificationReady(firmographicRecord); } w.Triblio.getAccountIdentification = function(){ return firmographicRecord; }; if(!w.TriblioAssetNameTracking) w.TriblioAssetNameTracking = {queued:[]}; if(config.firmTrackProvider === "ga4") { w.dataLayer = w.dataLayer || []; } function GATracker(){ this.maxRetries = 1000; this.retryCount = 0; } GATracker.prototype.run = function(){ var that = this; this.waitForThirdParty(function(){ that.postFirmographicData(); that.checkAssetNamesQueue(); }); }; GATracker.prototype.waitForThirdParty = function(callback){ var that = this; let hasFirmTrackProviderObject = true; if(config.firmTrackProvider === "ga4" && typeof w.google_tag_manager === "undefined") hasFirmTrackProviderObject = false; else if(config.firmTrackProvider === "ga" && typeof w[gaObjectAlias] === "undefined") hasFirmTrackProviderObject = false; let errorText = config.firmTrackProvider === "ga4" ? "Unable to find gtag or google tag manager analytics library on page" : "cant find google analytics library on page!"; if(!hasFirmTrackProviderObject && this.retryCount <= this.maxRetries){ /*wait for ga to load*/ setTimeout(function(){ that.retryCount++; that.waitForThirdParty(callback); }, 5); } else if(this.retryCount > this.maxRetries){ console.log(errorText); } else{ thirdPartyLibraryLoaded = true; callback(); } }; GATracker.prototype.postFirmographicData = function(){ var data = {"name":"Google, LLC","sicCode":7375,"isIsp":false,"employees":"25,000+","revenue":"$1,000,000,000+","country":"United States","domain":"google.com","naicCode":517810,"employeesCode":11,"revenueCode":9,"region":"California","city":"Mountain View","subIndustry":"N/A","industry":"Telecommunications"}; window[gaObjectAlias](function(){ window[gaObjectAlias].getAll().forEach(function(tracker){ if(tracker.get("trackingId") && tracker.get("trackingId") === "UA-1870447-4"){ tracker.set("dimension1", data.domain); tracker.set("dimension2", data.name); tracker.set("dimension3", data.sicCode); tracker.set("dimension4", data.naicCode); tracker.set("dimension5", data.employees); tracker.set("dimension6", data.employeesCode); tracker.set("dimension7", data.revenue); tracker.set("dimension8", data.revenueCode); tracker.set("dimension9", data.industry); tracker.set("dimension10", data.subIndustry); tracker.set("dimension11", data.region); tracker.set("dimension12", data.country); tracker.set("dimension13", data.isIsp); tracker.send("event", {nonInteraction: true}); } }); }); }; GATracker.prototype.checkAssetNamesQueue = function(){ var that = this; if(w.TriblioAssetNameTracking.queued){ w.TriblioAssetNameTracking.queued.forEach(function(ids){ that.postAssetNames(ids); }); } }; GATracker.prototype.postAssetNames = function(ids){ if(shouldTrackOrgAssets && thirdPartyLibraryLoaded){ var data = _getAssetNamesFromIds(ids); data.forEach(function(d){ window[gaObjectAlias]("send",{ "hitType": d.hitType, "eventCategory": d.metricsLabel, "eventLabel": d.name, "nonInteraction": true }); }); } }; function _getAssetNamesFromIds(data){ /*currently there is no click tracking on assets for ga, so get out of here!*/ if(data.action === 'click') return []; var lookup = eIdsToNames; if(!lookup || !Object.keys(lookup).length){ lookup = {personalizations:{}, contentHubs: {}, audiences:{}, campaigns:{}}; } var names = []; var isTypeBoardAndHasData = data.hubId && lookup.contentHubs[data.hubId]; if(isTypeBoardAndHasData){ names.push({ metricsLabel:config.metricsLabels.contentBoards, name: lookup.contentHubs[data.hubId], hitType: config.hitTypes.contentBoards }); } else if(data.type !== "board" && data.personalizationId && data.audienceSegmentId && data.campaignId){ var personalizationIds = data.personalizationId.split(","); var audienceSegmentIds = data.audienceSegmentId.split(","); var campaignIds = data.campaignId.split(","); personalizationIds.forEach(function(pId, index){ var hasPersonalization = (personalizationIds[index] && lookup.personalizations[personalizationIds[index]]) ? true : false; var hasAudience = (audienceSegmentIds[index] && lookup.audiences[audienceSegmentIds[index]]) ? true : false; var hasCampaign = (campaignIds[index] && lookup.campaigns[campaignIds[index]]) ? true : false; if(hasPersonalization && hasAudience && hasCampaign){ names.push({ metricsLabel:config.metricsLabels.personalizations, name: lookup.personalizations[personalizationIds[index]], hitType: config.hitTypes.personalizations }); names.push({ metricsLabel: config.metricsLabels.campaigns, name: lookup.campaigns[campaignIds[index]], hitType: config.hitTypes.campaigns }); names.push({ metricsLabel: config.metricsLabels.audiences, name: lookup.audiences[audienceSegmentIds[index]], hitType: config.hitTypes.audiences }); } }); } return names; } var tracker = new GATracker(); w.TriblioAssetNameTracking.postAssetNames = tracker.postAssetNames; tracker.run(); }(window));