","alternateLabel":null,"teaserImage":{"id":2017,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/cg_Flowfinity_ewp_1015_teaser.jpg?itok=2i9aW5hD","width":196,"alt":null,"height":216},"sponsored":false,"businessTopic":[],"company":[],"contentType":[]},{"title":"Nescaf and Google Offer Mobile Virtual Reality Coffee Experience","id":9000,"bundle":"article","summary":"Nescaf and Google have teamed up to offer the worlds first fully immersive virtual reality coffee experience. Find out how the Nescaf 360 app and an ingenious viewer transport consumers to Brazils coffee fields. ","showSummary":null,"url":"/nescaf-and-google-offer-mobile-virtual-reality-coffee-experience","date":"2015-09-30T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":13620,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/CGW_1115_NEscafe.jpg?itok=UguK5mHu","width":196,"height":216,"alt":null},"topics":[{"name":"Product Innovation","url":"/product-innovation-0"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"},{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"CGT Archives","url":"/CGT-Sections"}],"attachedFiles":[]},{"title":"How DKNY Utilizes Instagram Direct ","id":9017,"bundle":"article","summary":"Find out how DKNY is using Instagram Direct to provide fans personalized content on how runway designs were conceived.","showSummary":null,"url":"/how-dkny-utilizes-instagram-direct","date":"2015-09-18T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":13616,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/imgres.jpg?itok=5q6Ub9jX","width":190,"height":216,"alt":null},"topics":[{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"},{"name":"Mobile Applications","url":"/mobile-applications"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Digital Marketing","url":"/digital-marketing"}],"attachedFiles":[]},{"title":"Nestles Nescafe Brand Moves Websites to Tumblr","id":9020,"bundle":"article","summary":"Find out why Nescaf has become the first global brand to move all its international and local websites to the Tumblr platform. ","showSummary":null,"url":"/nestles-nescafe-brand-moves-websites-tumblr","date":"2015-09-15T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Product Innovation","url":"/product-innovation-0"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"},{"name":"Digital Marketing","url":"/digital-marketing"}],"attachedFiles":[]},{"title":"What Instagram's Latest Announcement Means for CG Brands ","id":9049,"bundle":"article","summary":"Instagram announces users can now share photos and videos in both portrait and landscape orientation on the social networking service, amove which may spur consumer goods brands to invest more in vertical video.","showSummary":null,"url":"/what-instagrams-latest-announcement-means-cg-brands","date":"2015-09-01T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":13600,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/instagram-web-%281%29.jpg?itok=EuKVdT5N","width":190,"height":216,"alt":null},"topics":[{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"},{"name":"Sales & Marketing","url":"/sales-and-marketing"}],"attachedFiles":[]},{"title":"KitKat turns 80: How Moment Marketing Helped the Brand Conquer the Digital World","id":9050,"bundle":"article","summary":"Launched in 1935, KitKat has become one of the worlds top consumer goods brands in social media, thanks toits knack for leveraging moment marketing the ability to move fast and leverage topical or news events.","showSummary":null,"url":"/kitkat-turns-80-how-moment-marketing-helped-brand-conquer-digital-world","date":"2015-09-01T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Digital Marketing","url":"/digital-marketing"}],"attachedFiles":[]},{"title":"Coca-Cola and E. & J. Gallo Winery Win Innovation Awards","id":9078,"bundle":"article","summary":"Coca-Cola and E. & J. Gallo Winery both won 2015 CPG Awards for Innovation and Creativity. Find out what set them apart.","showSummary":null,"url":"/coca-cola-and-e-j-gallo-winery-win-innovation-awards","date":"2015-08-18T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Product Innovation","url":"/product-innovation-0"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"}],"attachedFiles":[]},{"title":"Burberry Aligns Strategy with Mobile Traffic Boom","id":9139,"bundle":"article","summary":"Fashion icon Burberry adjusts its strategy in line with the fact that 40 percent of its digital traffic now comes from a mobile device.
","showSummary":false,"url":"/burberry-aligns-strategy-mobile-traffic-boom","date":"2015-07-20T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":false,"sponsored":false,"taggedPro":false,"teaserImage":{"id":13577,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/CONCEPT_IMAGE_WW_SHOW_SS14.jpg?h=56226b16&itok=55lhmnqx","width":190,"height":216,"alt":null},"topics":[{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"}],"attachedFiles":[]},{"title":"PepsiCo Announces Several Appointments","id":9153,"bundle":"article","summary":"PepsiCo, Inc. announces a series of leadership appointments that support the company's global business priorities and growth strategies, including a new vice chairman.","showSummary":null,"url":"/pepsico-announces-several-appointments","date":"2015-07-10T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"},{"name":"Sales & Marketing","url":"/sales-and-marketing"}],"attachedFiles":[]},{"title":"Nestle Deepens Digital Innovation Presence; Drumstick Brand Employs Video ","id":9158,"bundle":"article","summary":"Nestle is strengthening its digital innovation presence in Silicon Valley and will move into a new office co-located with swissnex in 2016. ","showSummary":null,"url":"/nestle-deepens-digital-innovation-presence-drumstick-brand-employs-video","date":"2015-07-08T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Product Innovation","url":"/product-innovation-0"},{"name":"Mobile Marketing","url":"/mobile-marketing"},{"name":"Manufacturing","url":"/manufacturing"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"Mobile Technology","url":"/mobile-technology"}],"attachedFiles":[]}]},"title":"Mobile Marketing","contentParagraphs":null,"sections":null};
const country = "US";
const language = null;
const SITE_LANGUAGE = "en";
const siteName = "Consumer Goods Technology";
const userRoles = ["anonymous"];
const userUid = 0;
const indexName = "CG";
const title = "Mobile Marketing | Consumer Goods Technology";
window.dataLayer = window.dataLayer || [];
const data = {};
data.entityTaxonomy = {};
const contentTypes = [
"article",
"blog",
"bulletin",
"embed_page",
"landing_page",
"event",
"image",
"page",
"product",
"whitepaper",
"video",
"tags",
"author_profile",
"buyers_guide_listing"
];
if (
routeInfo &&
"bundle" in routeInfo &&
contentTypes.includes(routeInfo["bundle"])
) {
data.entityBundle = routeInfo.bundle;
data.entityTitle = title || `${routeInfo.title} | ${siteName}`;
data.entityId = routeInfo.id;
data.entityName = routeInfo.author?.uname;
data.entityCreated = routeInfo.created;
data.sponsored = routeInfo.sponsored;
data.sponsor = routeInfo.sponsoringCompany;
data.entityType = "node";
data.entityLangcode = SITE_LANGUAGE;
data.siteName = siteName;
data.drupalLanguage = language;
data.drupalCountry = country;
data.userRoles = userRoles;
data.userUid = userUid;
data.entityTaxonomyKeys = {};
data.entityTaxonomyHierarchies = {};
data.parentNaicsCode = {};
data.isPro = false;
data.algoliaIndexName = indexName;
// Add taxonomy data
const taxonomies = {
businessTopic: "business_topic",
contentType: "content_type",
company: "company",
marketSegment: "market_segment",
};
const getHierarchy = (term, terms = []) => {
terms.push({ id: term.id, name: term.name });
if (term.parentTerm != null) {
getHierarchy(term.parentTerm, terms);
}
return terms;
};
const getTerms = (term, useApiId = false) => {
return { id: useApiId ? term.apiId : term.id, name: term.name };
};
const getKeys = (term) => {
return { id: term.id, name: term.apiId };
};
Object.entries(taxonomies).forEach(([key, item]) => {
terms = routeInfo[key];
if (terms && terms.length > 0) {
data["entityTaxonomy"][item] = terms.map((term) =>
getTerms(term, key === "company")
);
if (key !== "company") {
data["entityTaxonomyKeys"][item] = terms.map(getKeys);
termGroups = [];
terms.forEach((term, termInd) => {
termGroups[termInd] = getHierarchy(term);
});
data["entityTaxonomyHierarchies"][item] = termGroups;
}
}
});
data["entityTaxonomy"]["tags"] = routeInfo["topics"] || [];
// Primary Topic is either the business topic or the top tag.
if (routeInfo["businessTopic"]?.length > 0) {
data["entityPrimaryTopic"] = routeInfo["businessTopic"][0]["name"];
} else {
if (routeInfo["topics"]?.length > 0) {
data["entityPrimaryTopic"] = routeInfo["topics"][0]["name"];
}
}
// Primary and secondary entityNaicsCodes come from the MarketSegment
if (routeInfo.marketSegment?.length > 0) {
data.entityNaicsCode = {};
data["entityNaicsCode"]["id"] = routeInfo["marketSegment"][0]["id"];
data["entityNaicsCode"]["name"] =
routeInfo["marketSegment"][0]["naicsCode"];
if (routeInfo["marketSegment"][0]["parentTerm"] != null) {
data["parentNaicsCode"]["id"] =
routeInfo["marketSegment"][0]["parentTerm"]["id"];
data["parentNaicsCode"]["name"] =
routeInfo["marketSegment"][0]["parentTerm"]["naicsCode"];
}
} else {
data.entityNaicsCode = [];
}
if (routeInfo.taggedPro) {
data.isPro = routeInfo.taggedPro;
}
window.dataLayer.push(data);
} else if (routeInfo && "vid" in routeInfo) {
data.entityBundle = "tags";
data.entityTitle = routeInfo.name;
data.entityId = routeInfo.id;
data.entityName = routeInfo.author?.uname;
data.entityCreated = routeInfo.created;
data.entityType = "taxonomy_term";
data.entityLangcode = SITE_LANGUAGE;
data.siteName = siteName;
data.sponsored = routeInfo.sponsored;
data.sponsor = routeInfo.sponsoringCompany;
data.drupalLanguage = language;
data.drupalCountry = country;
data.userRoles = userRoles;
data.userUid = userUid;
data.algoliaIndexName = indexName;
data["entityTaxonomy"]["tags"] = {
id: routeInfo["id"],
name: routeInfo["name"],
};
window.dataLayer.push(data);
}
})();