Adobe DTM Plugin for WordPress

by Adam Haining September 27, 2016

If you have a WordPress site and you need to implement Adobe DTM on said website, look no further! We have built a powerful yet simple plugin for WordPress that will not only add Adobe DTM to your site, it will also automatically build a tracking data layer for all of your pages.

Get the Adobe DTM for WordPress Plugin

Here is a comprehensive list of features provided by the plugin:

  1. Automatic installation of the header and footer code.  All you need to do is specify the URL of the DTM library.
    adobe dtm snippet
  2. Customize the name of the global data layer object.
    adobe dtm data layer object name
  3. Pick and choose what you want in the data layer. This will pull data directly from WordPress.  This includes:
    1. Site title
    2. Site description / tagline
    3. Site platform
    4. Site URL
    5. Post type
    6. Post sub type
    7. Page ID
    8. Category list
    9. Tags
    10. Author name
    11. Post date
    12. Modified date
    13. Post title
    14. Post excerpt
    15. Post custom fields
    16. Post count – includes # of posts currently shown on the page
    17. Search term
    18. Search results – # of search results
    19. Search origin – referrer of where the search originated from
    20. Logged-in status
    21. Logged-in user role
    22. Comments – # of comments on a page/post
  4. For each item in the data layer, you can also customize what the name should be.
  5. You can use sub-objects for each item in the data layer. For example, if you wanted to follow the W3C data layer spec, you can build out the sub-objects as needed. Here is an example configuration that follows the spec:
    wordpress data layer configuration
    And here is what the data layer now looks like on the page:
    digitalData data layer
  6. Disable DTM from loading for any logged-in users. This can also be specified by the user type.
  7. If DTM is already installed and you just need to build a data layer, there is a check box specifically for this feature:
    data layer only checkbox

We hope you enjoy this plugin as much as we do. Please contact us with any bugs or feature requests!

  • Tag Management

Adam Haining

Adam Haining

Adam Haining is the Chief Technology Officer at Disruptive Advertising. He oversees the technical strategy, product engineering, cybersecurity, and technical operations across the organization. Adam is a curious soul who loves to build (and sometimes break) things. He studied mechanical engineering as a pursuit of his passion to build, only to find his way into the digital marketing industry. He learned that he could build with nothing but a keyboard and fingers, and is a self taught coder. He worked in the digital analytics industry for over a decade before joining Disruptive Advertising. He leads a small and talented development team, still works with a few clients, and is continually driving technology forward to solve difficult problems in creative ways. When he's not solving a technical problem, Adam is busy being a husband or father to his 5 children. He enjoys building things with his hands, fishing, snow skiing, drawing on his kids' lunch bags (shameless plug for @dadslunchbags on Instagram), reading anything by Brandon Sanderson, and spending time with his kids. He has already met Dave Grohl from the Foo Fighters, but would like to someday hang out with him.

Leave a comment

Featured Posts

Background Parallax
Background Parallax

Let's Do This!

Let's get in touch to see if we're a good fit to help you reach your business goals.

©2024 Disruptive Advertising