DOM Scraping into Data Layer & Custom JS Variables

Comments:2

  1. When I follow this step: Right-click and “Copy property path” to save this path to your clipboard. I am not getting the full path you’re showing above. Instead, I only get .target.innerText. What am I doing wrong?

    1. Hey Sara, good question. I just tested it and it doesn’t work for me anymore either, so maybe something changed in a recent version of Dev Tools.
      Luckily it’s still pretty easy to get it: just use your mouse to highlight the full path in the Console, then click Ctrl-C to copy it and Ctrl-V to paste (just as you would in any other text application). I’ll update the post. Please let me know if you have any problems!

Leave a Reply

Your email address will not be published.