since ‎25-11-2015
‎30-04-2020
joshd7227840
MVP
Re: Triggering Rules with a CustomEvent
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Experience Platform Launch
There are 3 components to Custom Event handling:Creating the Custom Event (latest browser versions use new CustomEvent(..), but you may need to use different syntax if you are looking for extended backwards compatibility)Dispatching (triggering) the Custom Event (latest browser versions use elem.dispatchEvent(event), but you may need to use different syntax if you are looking for extended backwards compatibility)Listening for the dispatched (triggered) Custom Event (this is where you attach an e...

Views

3.3K

Likes

5

Replies

0
Re: Time Between Events Calculation Ability
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
So I actually wrote a plugin for this a couple years ago. I won't offer support for it; use it as-is, at your own risk! Standard disclaimer. But you're welcome to use it if you want! It's called s.getTimeBetweenEvents. Here is the code for it, along with dependent functions (also requires Adobe's s.inList, s.c_r, and s.c_w utility functions which you probably already have). [JavaScript] Adobe Analytics s.getTimeBetweenEvents - Pastebin.com

Views

17.0K

Likes

0

Replies

0
Re: Form Submission Tracking
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
There is no "one-size-fits-all" solution for this. Your solution is unique to how your site is setup. If you want some pointers, you will need to provide details about how your site is setup. For example, does your form have a unique URL the visitor has to go to? Or is it some button you click and you get an overlay on a page? Is it embedded as an iframe on your site? Same with the "thank you" / confirmation page. But also, do you care about tracking only submit attempts (as in, user clicks the ...

Views

1.1K

Likes

0

Replies

0
Re: DTM rule condition for current URL
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
The only stable way I have found to solve for timing issues with rules vs. pushState/hashchange is to have the devs explicitly call something (e.g. a Direct Call Rule) before the pushState/hashchange is executed.

Views

974

Likes

0

Replies

0
Re: DTM Rules
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
A condition using Path (include|exclude) is a substring ("contains") match. (sidenote: actually DTM performs a regex match against the value, even when you have Regex option turned off. Not relevant for your current values, but keep this in mind for future reference: you need to escape special regex chars if you want to use Path (include|exclude), even if you have regex option disabled!)So, in your 1st rule, your condition is for path contains "actionUrl=/Member/Beneficiaries/Index&plancode=HS"A...

Views

6.0K

Like

1

Replies

2
Re: DTM rule condition for current URL
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
I'm not sure that I understand your issue. URL > Path (and other components) is based off the current URL (the window.location object). I will make a sidenote that for DTM, Path actually means location.pathname+location.search. For this reason, I have a data element named location_pathname that returns location.pathname. In any case, maybe there is some kind of conflict with your value vs. this? My next guess is maybe you have timing issues because of some pushState/hashchange on your site. But....

Views

973

Likes

0

Replies

0
Re: 2 DTM containers
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
You cannot run two separate DTM containers on the same page. DTM uses _satellite object namespace for its core library and there is no way to change that. So, the 2nd DTM container will overwrite the 1st container. And.. you may see a mixed bag of weirdness depending on how much of the 1st container is loaded before the 2nd container..

Views

1.4K

Likes

2

Replies

0
Re: RSID through data element?
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Experience Platform Launch
You can configure your report suite(s) through a Data Element in Launch, yes.Here is an example of setting the report suite based on domain.First, go to to the Data Elements tab, and click +Add data element.Under Create New Data Element, enter the following:Name: rsid_configExtension: CoreData Element Type: Custom CodeThen, click the Open Editor, and add the following:update the code to use your real report suites and domainsvar host = location.hostname;var rsid = '';switch (host) { /* dev envi...

Views

1.4K

Likes

4

Replies

0
Re: Implement click event on iFrame
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Is the iframe hosted on the same domain as the parent page?

Views

1.5K

Likes

0

Replies

0
Deploying Launch async - alternative tag syntax
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Experience Platform Launch
So this new feature to deploy Launch async.I see that it gives you a tag like this:From my perspective, I should be able to instead do something like this:(function() { var s = document.createElement('script'); s.src = "//assets.adobedtm.com/launch-12345-development.min.js"; s.async=true; var t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t);})();I want to be able to do this because it would allow me to dynamically output "12345" and/or "development" parts of the sc...

Views

2.0K

Likes

2

Replies

1
Re: Processing Rules: Add Events to the line item conditions
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
I heard a rumor at one point that Adobe was going to sunset VISTA rules in favor of beefing up Processing Rules, but I don't know how true that actually is. But yeah, Processing Rules really do need a lot more love put into them.For your specific issue, what I do as a workaround is (on a code level) I dupe events to a prop, which lets me add a (top level) condition to check if eventX is in the prop. And for the condition part, I create the PR with 3 conditions , set to "All" to be true :propX do...

Views

2.2K

Likes

0

Replies

0
Re: eVar Allocation
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
eVar AllocationAll eVar values sent to Adobe are stored, regardless of allocation. What allocation does is assign "credit" to the values for conversions (events).So for example, let's say you pop eVar1 on every page view with a page name (and let's say the values are "page1", "page2", etc.). And let's say you trigger event2 when an exit link is triggered. Now let's say a visitor views 5 pages and then clicks an exit link. Then, you look at your eVar1 report using event2 as a dimension.If eVar1 w...

Views

957

Likes

0

Replies

0
Re: eVar Allocation
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
eVars have a "Most Recent (Last)" option you can select from the Allocation dropdown:If you do not see this option in your dropdown, then it sounds like there may be something buggy that you need to contact Client Care about.

Views

914

Likes

0

Replies

0
Re: How does DTM send tracking to GA account?
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
When you add UA on a Tool level, by default DTM outputs the UA library and page view tracking on every page load, even when no Page Load Rules (PLR) are in place.If you do not want UA to load on certain pages, you can create a PLR with condition(s) to identify the pages (e.g. a URL path) and then within Google Universal Analytics tool section of the PLR, there is a checkbox labeled "Don't load Google Universal Analytics on these pages" that you can check.So in other words, by default everything ...

Views

1.1K

Likes

0

Replies

0
Re: DTM Direct Call Rule - Don't Set High Integer values to Custom Events
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
You also asked this question on Stack Overflow, and you marked my answer as solved, but I may as well post it here too, for posterity.btripple's answer is basically right in principle, but the condition itself isn't what you are looking for. His condition will return true if the returned data element value is truthy, which is basically any number except zero. Here is what you are looking for: var hpelement= +_satellite.getVar("hpelement");if (hpelement<=10000) { s.events= "event2"; s.products=";...

Views

1.1K

Like

1

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
The Data Element name. Look at my 2nd posted screenshot in previous post. That ss shows what is in _satellite.dataElements in the js console.I have done some more poking and I can verify you don't actually have quotes in the DE name (it looks the same from the js object dump but it's not actually access the same, so i was able to verify you actually don't have quotes in the DE name). But there is definitely a trailing space. I don't think that's technically a problem though. I do see that the Ru...

Views

1.2K

Likes

0

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Yes, at a minimum, you are missing a number of things, which I detailed above.I looked at your page again and it looks like you fixed the evar vs. eVar reference, and I do see that eVar25 now pops in the AA request.But I see that you have not fixed the issue with wrapping your "Funnel Level " Data Element in quotes and the trailing space after it, so I do not see eVar24 pop. But the page doesn't show that there is even a value in dtmAnalyticsData.eVar24 anyways (it's just an empty string), so AA...

Views

1.2K

Likes

0

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Okay so a couple of things I see.First, here is what I see on the page for dtmAnalyticsData:And here are the Data Elements I see:So firstly, you originally mentioned setting up DE's referencing eVar21-25, but I only see DE's for evar24 and evar25. So it looks like you are missing DE's for eVar21-23.Secondly, for the ones you have created (eVar24-25), you reference them as evar24 and evar25, but they are eVar24 and eVar25 (capital "V"). Javascript variables are case-sensitive.Thirdly, the one for...

Views

1.2K

Likes

0

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Okay so if the Data Element is type JS Object and that is indeed what you are pointing at, then at face value, the issue is not with your Data Element, but somewhere else. Next likely culprit is there may be a timing issue between where/when dtmAnalyticsData is on your page vs. when you are trying to reference your Data Element in whatever rule. Kinda getting into "Can't help without being able to see it on a site" territory, though..

Views

1.2K

Likes

0

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
You have a dot in there that doesn't belong.dtm.AnalyticsData.evar20Should be dtmAnalyticsData.eVar20

Views

1.2K

Likes

0

Replies

0
Re: Using direct call rule to call direct call rule
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
In a 3rd party script tag you can add a _satellite.track('dc_rule_condition_string') call to your 2nd dc rule but I echo Jantzen.Belliston sentiment.. I'm skeptical about why you want to do this; good chance there could be a better way to do what you ultimately want out of all this..

Views

997

Like

1

Replies

0
Re: Tracking new elements in the source code
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
do you see the data in the tracking server request?

Views

1.2K

Likes

0

Replies

0
Re: How to know how many times my images are sourced on other websites?
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
Adobe Analytics is not able to directly record this sort of thing. Firstly, Adobe Analytics can only record data on a website it is implemented on. So if some other web site does not have your Adobe Analytics code implemented on it, then you cannot get data for that website. However, in general, on a given website where you do have your Adobe Analytics code implemented, you can write some custom javascript code to scrape a given page for images pointing to "mywebsite.com", sure. But it sounds li...

Views

871

Like

1

Replies

0
Re: Data Error - Page views more than doubled overnight
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
This sounds like there was a change to the Adobe Analytics code on the site. An additional s.t() call was added. Maybe a DTM rule triggering an additional page view. Or some automated tracking of some kind making an additional s.t() call. We might be able to further help if you provide a link to page(s) affected.

Views

982

Likes

2

Replies

0
Re: Analytics reporting API
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
Look at the content of the error response. The error response attempts to give you information to point you in the right direction for what's going wrong. If you go to the URL shown in the error_uri response (Analytics Elements | Adobe Developer Connection) you will see that "cities" is not listed as valid element (which is also reflected in the error_message itself). Perhaps you meant to use "geocity" ? Note that you must have geo-segmentation enabled on the report suite to use this element (wh...

Views

1.2K

Like

1

Replies

0
Re: RegEx for processing rules
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Analytics
bretgundy​There's already an expectation of delay on data availability in reports (except for real-time reports, which let's be honest here, are of limited value to begin with). Also, I'm pretty sure VISTA rules are able to use regex, yes? Regex support for various things within AA (filters, segments, PRs, etc.) has been a long-standing request from many people, that other tools (e.g. GA) handle just fine. The fact that AA continues to have limited to no regex support after all these years is ra...

Views

9.5K

Likes

0

Replies

0
Re: Page name issue
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Okay well I don't see anything in this code that directly replaces anything with a space. My next guess is the dataLayer[0]['pageURL'] variable you reference sometimes has spaces in it. Maybe whatever outputs this data layer variable has it when it is output sometimes. Or maybe there is some other code elsewhere that alters it sometimes. Or, maybe you have other code elsewhere that sets your page name using different code, that executes/overrides this code, sometimes. I'm not sure what more I ca...

Views

1.3K

Like

1

Replies

0
Re: Access to rule name for monitoring
Avatar

joshd7227840

MVP

joshd7227840
- Adobe Experience Platform Launch
exposed in the rule in such a way that it can be pushed to a variable, e.g. a built-in data element prop1="%currentRuleName%" that returns the triggered rule's name. This is something myself and a lot of people have been asking from DTM for a long time and I was hoping it would be available in Launch 😕

Views

6.4K

Likes

0

Replies

0
Re: Page name issue
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
Please help us help you. Can you post what the data element configuration looks like?

Views

1.2K

Likes

0

Replies

0
Re: Page name issue
Avatar

joshd7227840

MVP

joshd7227840
- Dynamic Tag Management
As mentioned, there is nothing in the Adobe libraries that would replace "-" with " ". The only thing related I can think of is "+" is a form posted urlencoded character for " " if you have spaces in a URL, so e.g. "www.somesite.com/foo+bar/page.html?a=some+thing" would get decoded to "www.somesite.com/foo bar/page.html?a=some thing". There are other special characters in a URL that are encoded/decoded, but "-" has no special meaning in the URL so it would never be changed to/from anything from ...

Views

1.2K

Likes

0

Replies

0