{"id":45183,"date":"2017-01-20T12:22:56","date_gmt":"2017-01-20T06:52:56","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=45183"},"modified":"2017-01-30T14:45:02","modified_gmt":"2017-01-30T09:15:02","slug":"how-to-access-google-analytics-dimensions-in-aem","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/","title":{"rendered":"How to Access Google Analytics Dimensions in AEM?"},"content":{"rendered":"<p><span style=\"font-weight: 400\">I was working on a project <\/span><span style=\"font-weight: 400\"><a href=\"https:\/\/github.com\/IntelliGrape\/aem-ga\">CONAG<\/a>\u00a0<\/span><span style=\"font-weight: 400\">where I had to create a mapping page for <a href=\"http:\/\/www.tothenew.com\/blog\/google-analytics-mapping-console-in-aem\/\">Google Analytics<\/a> (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with <a title=\"AEM development\" href=\"http:\/\/www.tothenew.com\/wcm\/cq-aem-development-consulting\">AEM<\/a>\u00a0variables.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To get these dimensions of an account, we need to have Analytics object for which we need to have GoogleCredential object.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In this blog, I will be discussing the approach to get GoogleCredential object in AEM as rest of the part is straightforward and Google has already given an <\/span><a href=\"https:\/\/developers.google.com\/analytics\/devguides\/reporting\/core\/v3\/quickstart\/service-java\"><span style=\"font-weight: 400\">example <\/span><\/a><span style=\"font-weight: 400\">for the same.<\/span><\/p>\n<p><strong><span style=\"font-weight: 400\">To get GoogleCredential object, we need to set private key of service account.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">There are two ways of doing this; even Google provides two different methods for this:<\/span><\/strong><\/p>\n<ul>\n<li>setServiceAccountPrivateKeyFromP12File (java.io.File file)<br \/>\n<span style=\"font-weight: 400\">In this method, we need to get File object of .p12 file (provided by Google). G<\/span><span style=\"font-weight: 400\">etting a java.io.File object is very tedious in AEM as it does not interact with the file system directly.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">So, first\u00a0we need to get inputstream of the resource containing .p12 file data from content hierarchy (in AEM, everything is content) and write it into a temporary file. But converting the .p12 file into a\u00a0temporary file would give the exception because it is encrypted.<\/span><strong><strong><span style=\"font-weight: 400\"><strong><br \/>\n<\/strong>So we have to use setServiceAccountPrivateKey which takes java.security.PrivateKey as a parameter.<\/span><\/strong><\/strong>&nbsp;<\/li>\n<li><strong><span style=\"font-weight: 400\">setServiceAccountPrivateKey(java.security.PrivateKey privateKey)<br \/>\n<\/span><\/strong><span style=\"font-weight: 400\">To get the java.security.PrivateKey from .p12 file, we need to get the inputstream of file as<\/span><\/p>\n<p>[java]Resource fileResource = resourceResolver.getResource(filePath);<br \/>\nfinal Node node = fileResource.adaptTo(Node.class);<br \/>\nfinal InputStream is = node.getProperty(&quot;jcr:data&quot;).getBinary().getStream();[\/java]<\/p>\n<p>Now when we have the inputstream of the file, we need to get the java.security.KeyStore as<\/p>\n<p>[java]final KeyStore keyStore = KeyStore.getInstance(keyStoreType, keystoreProvider);[\/java]<\/p>\n<p>Load the KeyStore object as<\/p>\n<p>[java]keyStore.load(is, filePassword.toCharArray());[\/java]<\/p>\n<p>Finally get the PrivateKey as:<\/p>\n<p>[java]PrivateKey privateKey = (PrivateKey) keyStore.getKey(keyAliasName,filePassword.toCharArray());[\/java]<\/p>\n<p>Get the HttpTransport object:<\/p>\n<p>[java]final HttpTransport httpTransport = GoogleNetHttpTransport.newTrustedTransport();[\/java]<\/p>\n<p>Get GsonFactory:<\/p>\n<p>[java]GsonFactory JSON_FACTORY = GsonFactory.getDefaultInstance();[\/java]<\/p>\n<p>Now, we can get the GoogleCredential object:<\/p>\n<p>[java]final GoogleCredential credential = new GoogleCredential.Builder().setTransport(httpTransport).setJsonFactory(JSON_FACTORY).setServiceAccountId(serviceAccountEmail).setServiceAccountPrivateKey(serviceAccountPrivateKey).setServiceAccountScopes(AnalyticsScopes.all()).build();[\/java]<\/p>\n<p>And get the Analytics object from GoogleCredential:<\/p>\n<p>[java]analytics = new Analytics.Builder(httpTransport, JSON_FACTORY, credential).setApplicationName(appName).build();[\/java]<\/p>\n<p>Now, we have Google Analytics java object and we can perform any operation like create dimension, get dimension, create a\u00a0report and many other operations which this API provides.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I was working on a project CONAG\u00a0where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM\u00a0variables. To get these dimensions of an account, we need to have [&hellip;]<\/p>\n","protected":false},"author":569,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[446,1],"tags":[4847,4051,4267,171,4844],"class_list":["post-45183","post","type-post","status-publish","format-standard","hentry","category-java","category-technology","tag-aem","tag-aem-6-2","tag-ga-with-aem","tag-google-analytics","tag-java"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Rajeev Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#article\",\"name\":\"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog\",\"headline\":\"How to Access Google Analytics Dimensions in AEM?\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajeev\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2017-01-20T12:22:56+05:30\",\"dateModified\":\"2017-01-30T14:45:02+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#webpage\"},\"articleSection\":\"Java\\\/JVM, Technology, AEM, aem 6.2, GA with AEM, google analytics, Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#listItem\",\"name\":\"How to Access Google Analytics Dimensions in AEM?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#listItem\",\"position\":3,\"name\":\"How to Access Google Analytics Dimensions in AEM?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajeev\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajeev\\\/\",\"name\":\"Rajeev Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/306d9d6e-733f-4594-a691-24e657950bc6_rajeev@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Rajeev Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/\",\"name\":\"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog\",\"description\":\"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-access-google-analytics-dimensions-in-aem\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajeev\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajeev\\\/#author\"},\"datePublished\":\"2017-01-20T12:22:56+05:30\",\"dateModified\":\"2017-01-30T14:45:02+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog","description":"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have","canonical_url":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#article","name":"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog","headline":"How to Access Google Analytics Dimensions in AEM?","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/rajeev\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2017-01-20T12:22:56+05:30","dateModified":"2017-01-30T14:45:02+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#webpage"},"articleSection":"Java\/JVM, Technology, AEM, aem 6.2, GA with AEM, google analytics, Java"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#listItem","name":"How to Access Google Analytics Dimensions in AEM?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#listItem","position":3,"name":"How to Access Google Analytics Dimensions in AEM?","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/rajeev\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/rajeev\/","name":"Rajeev Kumar","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/306d9d6e-733f-4594-a691-24e657950bc6_rajeev@tothenew.com.jpg","width":96,"height":96,"caption":"Rajeev Kumar"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/","name":"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog","description":"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/rajeev\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/rajeev\/#author"},"datePublished":"2017-01-20T12:22:56+05:30","dateModified":"2017-01-30T14:45:02+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog","og:description":"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have","og:url":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"How to Access Google Analytics Dimensions in AEM? | TO THE NEW Blog","twitter:description":"I was working on a project CONAG where I had to create a mapping page for Google Analytics (similar to what Adobe Analytics provide for AEM) in which I needed all the dimensions of Google Analytics so that I could map these dimensions with AEM variables. To get these dimensions of an account, we need to have","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"45183","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 13:40:15","updated":"2024-02-29 08:48:11","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Access Google Analytics Dimensions in AEM?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"How to Access Google Analytics Dimensions in AEM?","link":"https:\/\/www.tothenew.com\/blog\/how-to-access-google-analytics-dimensions-in-aem\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/45183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/569"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=45183"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/45183\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=45183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=45183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=45183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}