since ‎08-06-2020
‎27-02-2021
evolytics_brian
Level 5
Re: Parsing URL minus domain & QSP to Page Name
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
The example I provided does NOT include query parameters.

Views

21

Likes

0

Replies

0
Re: Parsing URL minus domain & QSP to Page Name
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@Jmaguire - document.location.pathname is ONLY the file path of the URL. It does NOT include protocol, hostname, query parameters, or has values. See the following link for more information: https://developer.mozilla.org/en-US/docs/Web/API/URL

Views

42

Likes

0

Replies

0
Re: Parsing URL minus domain & QSP to Page Name
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@Jmaguire -The simplest approach might be to create a "page name" data element that parses the pathname per your requirements. Maybe start with something like this:var path = document.location.pathname; if (path === "/") { // specify a default value if the path is "/" (assume home page) path = "homepage"; } else { // remove leading "/", then replace all remaining "/" with ":" path = path.replace(/^\//, "").replace(/\//g, ":"); } return path; Then, in your rules, reference the data element.

Views

96

Likes

0

Replies

5
Re: iFrame and postMessage method Help
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@Ikinet -postMessage is likely going to be your best option, but your dev team will have to trigger the call from inside the frame. For example, you can have them add an onclick to the links you are interested in that triggers the postMessage event (with the desired event payload). Then, from Launch, you can add an event listener that reacts any time a message comes through, triggering the desired analytics calls. MDN Web Docs details how postMessage works: https://developer.mozilla.org/en-US/do...

Views

67

Likes

0

Replies

0
Re: How to get the environment name in analytics.
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@vijithar4145255 - If you want a "set it and forget it" approach, consider creating a data element with the value of _satellite.buildInfo.environment and using it to conditionally execute/not execute your rule. You shouldn't have to worry about enabling/disabling the rule as you promote through the different environments.

Views

82

Likes

0

Replies

2
Re: Processing data after receiving from data layer
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@H_L- Start with the classifications overview at the link below to get up to speed with the whole concept. You'll find links to both the Classification Rule Builder and Classification Importer options in the left nav if you need more information. If you get stuck, post back here and I'm sure someone can lend a hand. https://experienceleague.adobe.com/docs/analytics/components/classifications/c-classifications.html?lang=en#classifications

Views

117

Likes

0

Replies

0
Re: Processing data after receiving from data layer
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@H_L If I'm reading your question right, it sounds like you are pulling the product information from the URL (or, your data layer pulls it from the URL and that's what gets passed to Adobe). There are a couple of ways to resolve this without getting your dev team immediately involved, but the "right" approach depends on whether or not you have a tag manager (ie// Launch) in place and have the ability to make changes there.Option 1, assuming you have access to LaunchModify the value being passed ...

Views

154

Likes

2

Replies

3
Re: Event for Pincode Check and success
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform
Again, it's hard to give specific answers without knowing how the page is set up, but as long as you're triggering a call at those specific times, you should be good. I suggested s.tl() calls simply because the tracking is likely to occur without the user being sent to a new/different page, or reloading the current page. If they are being sent to a different page (or reloading the current page), you could include the success events and related information (ie// pincode searched, and the result) ...

Views

65

Likes

0

Replies

0
Re: Event for Pincode Check and success
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform
@bindukumari1990 It's hard to give specifics without knowing how the page is built, but at a high level, I would assume there's a form submit event when the customer submits a pincode. When that happens, you could trigger an s.tl() (link tracking) call with the necessary information. (I'd capture the pincode and a success event, at a minimum.) When the results come back from the server, I would send another s.tl() call (pincode, success event, and result). This, of course, assumes the customer r...

Views

74

Likes

0

Replies

0
Re: Why visits higher than entries using Page Name?
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
Correct. All pages should count as a Page View each time they are viewed.

Views

75

Likes

0

Replies

0
Re: Satellite track is getting undefined
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@Knowledgeseeker98 If I'm reading your question right, you're saying that you have a custom JS file that attempts to reference the _satellite.track() method, but that file is loading before Launch is loaded on the page. If that's the case, you're going to have to load the JS file (or at least delay the _satellite.track() call) after the Launch script loads.

Views

115

Likes

0

Replies

1
Re: Why visits higher than entries using Page Name?
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@beluks - That's expected. Every page viewed during a visit will get credit as a "Visit" for that visit. Only the first page viewed will get credit as an "Entry" for that visit, as that metric reflects the entry point (ie// first page viewed). Consider, if a visitor views just the following five pages during a single visit: 1. Paid Search Landing Page (Entry page)2. Product Detail Page3. Cart Page4. Checkout Page5. Order Confirmation Page The report would show 1 Entry for "Paid Search Landing Pa...

Views

84

Like

1

Replies

2
Re: Correctly Creating a Data Element
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
Happy to help, @robertw54618073. Glad it worked out for you. (On a side note, I did some analytics consulting work for Panduit a number of years ago, so it's kind of fun to revisit the site.)

Views

115

Likes

0

Replies

0
Re: Correctly Creating a Data Element
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@robertw54618073- Overall, I think your setup looks fine. The two things I'd look at first are:Check the "Advanced" settings on the click event config screen:In the "set variables" screen, make sure you're not setting eVar91 in the GUI, then set the correct casing in the code. It should be "eVar91" instead of "evar91".

Views

124

Likes

0

Replies

0
Re: Correctly Creating a Data Element
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
Good catch, @yuhuisg. Thanks for including the polyfill.

Views

136

Likes

0

Replies

0
Re: Correctly Creating a Data Element
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@robertw54618073 -Assuming you only need this data for this particular rule, I would probably go with a data element-free approach. Try the following:Set the selector for your click action in the rule to: tr.pdp-resource-row li.list-inline-itemRemove the current eVar setting in your "set variables" actionAdd the following as custom code:var linkText = this.innerText;var resourceRow = this.closest("tr.pdp-resource-row");var resourceType = resourceRow.querySelector("td.resource-title").innerText;s...

Views

150

Likes

0

Replies

7
Re: Adding new fields to campaign Classification
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@sana_john - You can add a classification without impacting existing classifications.Taking the example from one of your other comments on this question, let's assume you already have "id", "name", and "category" as classifications for your Tracking Code (s.campaign / v0) report. You could add a new classification such as "sub-category" without impacting existing data and or reporting.If you have Classification Rules running for this eVar, you can add rules to account for the new "sub-category" ...

Views

59

Like

1

Replies

0
Re: How to set Analytics cookie to secure flag
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
It's wherever you're instantiating your Visitor ID Service.

Views

83

Likes

0

Replies

0
Re: Classification Builder
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@1982luca - Classification rules execute in a top-down sequence, with the last rule matched setting the value you see in reports. For example, if a value matches three separate rules, the value set in the third rule is what appears in reports. Based on this, I've had success setting a catch-all rule as the first rule in the list. In your case, it would look something like this:Rule Type: RegExMatch Criteria: .*Set Value To: N/AThis ensures that all values (including empty strings/spaces) are fir...

Views

48

Likes

0

Replies

0
Re: How to track in Analytics new customer from paid medi...
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@1982luca - Typically, you don't add your Analytics tracking code to third-party websites. I can't recommend that approach. (I'm assuming that, by third-party, you're referring to a site owned and maintained by someone else, and that the content is not yours. Your banners will be placed on the site, but that's the only connection. If you mean something different, please clarify.)

Views

83

Likes

0

Replies

0
Re: How to set Analytics cookie to secure flag
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@pradeep_07 - Try this:var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ID-HERE",{ ... ... secureCookie: true //Set secure cookie property });https://experienceleague.adobe.com/docs/id-service/using/id-service-api/configurations/securecookie.html?lang=en#id-service-api

Views

100

Likes

0

Replies

3
Re: Event Serialization Not Working
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@Uditgupta1 - The purchaseID belongs in s.linkTrackVars, not s.linkTrackEvents. Otherwise, your code example looks good.

Views

97

Likes

0

Replies

0
Re: Avoid tracking for saved web pages or bookmarked pages
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@gokula - There are probably a number of ways to address this...Use a VISTA rule to drop any requests where the URL indicates it's a local file (file:) rather than a hosted web page (http:, https:). Note that there is a cost associated with this approach.If you're using Launch, place conditions on your Analytics rule(s) that prevent the call(s) from firing if document.location.protocol is NOT "file:".If adding conditions to rules is too much work (lots of rules!), or you're not using a tag manag...

Views

144

Like

1

Replies

1
Re: How to track in Analytics new customer from paid medi...
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@1982luca - I'm assuming you have your paid media tagged (tracking codes), and you've set up your Marketing Channels and related Processing Rules. If this is a correct assumption, the answer to your question comes down to reporting needs and preferences, and either of the following should give you the information you need: Use a "First Time Visits" segment that includes only data where "Visit Number = 1" when looking at your Marketing Channel reportsBreak down your Paid Media channels using the ...

Views

120

Like

1

Replies

3
Re: Possible to get more than just 3 list variables? Or h...
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@yuhuisg- I gave it a shot with both set on Visit expiration, and the results were a bit of a mess. The eVar was set to last touch, and the listVar, full, and I found that the information was jumbled together. I passed "favorite colors" into an the eVar and a list of three or four colors into the listVar (same hit), then repeated the process (different colors) a few times. I followed that by setting the eVar to "best pizza" and passing various types of pizza into the listVar. The image below sho...

Views

154

Likes

0

Replies

0
Re: Possible to get more than just 3 list variables? Or h...
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@yuhuisg - I like this approach. What are the gotchas around eVar/listVar settings? For example, are you expiring both on the hit? Visit? Something else?

Views

173

Likes

0

Replies

0
Re: Assign dynamic value to eVar upon user behavior
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@H_L -It sounds like you're wanting to create a report that combines the page name with the traffic source. If that's the case, it's certainly possible, but it requires client-side code to identify each of your marketing channel based on referrers, tracking codes, etc. (In a way, you have to build Marketing Channel Processing Rules, but using JavaScript.) If you're using Launch, take a look at the Channel Source Identifier extension. It should take care of the heavy lifting for you, but you'll s...

Views

94

Likes

0

Replies

1
Re: Data element "Page Name" is invalid because it relies...
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform Launch
@sateeshk9319722 - It sounds like there are changes that need to be added to your build. I would suggest reviewing the "Page Name" data element to see what - if any - extensions are used, and then make sure the related extension(s) are included in your build.A shotgun approach would be to simply click the "Add All Changed Resources" button on the "Edit Library" screen. If you're concerned there are changes that shouldn't be included, you'll want to be more selective here. Either way, be sure to ...

Views

158

Likes

2

Replies

2
Re: Event reporting, how to exclude artificial/erroneous...
Avatar

evolytics_brian

evolytics_brian
- Adobe Analytics
@graham_21 Is your goal to truly "half" the number of events, or is it to get a unique count of the event? Should the event count each the page loads (could be multiple times per visit if the visitor loads the page multiple times), or only a single time for the visit?

Views

76

Likes

0

Replies

1
Re: Track multi choice
Avatar

evolytics_brian

evolytics_brian
- Adobe Experience Platform
@1982luca -I'd probably create a data element in Launch that's based on custom JS (see below). You'd then just reference the data element in the rule that executes when the form is submitted (or whenever you want to collect the info) to populate your eVar (listVar, listProp...).var retval = []; var elements = document.querySelectorAll("input[name='interests']"); if (elements.length > 0) { elements.forEach(function (item) { if ((item).checked === true) { var chosenOne = item.parentElement.querySe...

Views

123

Likes

0

Replies

0