Expand my Community achievements bar.

Chasin
Chasin
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi Sameer,1. Either or both, whichever is easier for you. Data Elements can be used to hold values of DOM elements that already exist on your pages, or for values that you instantiate, manage, and manipulate entirely in DTM. If you already have metadata in meta tags, in custom data attributes, or el...

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    0
  • Paul,Do you have an Adobe consultant you're working with to implement tracking in your app? Without knowing the context details of your app, I would think you could add an ID, or an ng-xxx, or other attribute to the "element clicks that do not result in a page load" and have one Event Based Rule tha...

    Type

    Questions

    Views

    1.5K

    Likes

    0

    Replies

    0
  • If that datalayer object exists in your page, you can just point the DTM Data Element at it. When  you set up your Data Element, you can use JS Object as the Type, and in the Path, you just type datalayer.productsYou don't have to use a Data Element here, but you can. When you set your products vari...

    Type

    Questions

    Views

    2.7K

    Like

    1

    Replies

    0
  • Sorry, for the console you need `console.log` instead of return. The "return" statements are for the Data Element or Rule Condition.So, your Data Element or Rule Condition would look like:if(document.location.pathname) { return document.location.pathname; } else { return ''; }The code above should r...

    Type

    Questions

    Views

    2.6K

    Likes

    0

    Replies

    0
  • Hey Jason,If your Data Element contains the code you wrote:if(document.location.pathname) { return document.location.pathname; } else { return ''; // empty string }You should see just the path, without the protocol, subdomain, etc.  If you copy & paste this code into the browser console, what do you...

    Type

    Questions

    Views

    1.8K

    Likes

    0

    Replies

    0
Top badges earned by Chasin
Customize the badges you want to showcase on your profile