{
  "slug": "disruptive-dtm",
  "prefix": {
    "config": "",
    "dataLayer": "",
    "disable": "disable-"
  },
  "adminSections": {
    "config": "This plugin is intended to be used by those implementing Adobe DTM on the site. &nbsp;Please be aware to test on all pages before deploying to production.",
    "dataLayer": "Use the meta data available within WordPress to easily build a data layer that you can use with DTM.  Check an item to add it to the data layer.  You can also configure the name of the item in the data layer.  Sub-objects are supported, use dot notation if you wish to create elements as sub-objects.",
    "disable": "Disable DTM from loading for anyone logged in or not logged in.  A great feature for disabling tracking for employees, or disabling tracking for guests while the implementation is underway."
  },
  "config": [
    {
      "name": "dtm-code",
      "label": "DTM Embed Code",
      "desc": "Enter only the src of your embed code here.  Here is an example of the highlighted section of the code to copy: <br><code>&lt;script type=\"text/javascript\" src=\"<span style='background-color: #fff692;'>//assets.adobedtm.com/5daf62d90488bcaa71c4fae1736a44b3b435fd84/satelliteLib-1b021de2daf1fe4a4d95e06b55a949cd0358e914.js</span>\"&gt;&lt/script&gt</code>",
      "type": "text",
      "style": "max-width:100%; width: 980px;"
    },
    {
      "name": "include-dtm-exists",
      "label": "DTM Already on Page",
      "desc": "DTM is already on the site, only add the data layer",
      "type": "checkbox",
      "default": false
    },
    {
      "name": "dtm-datalayer-variable-name",
      "label": "Data Layer Variable Name",
      "desc": "Rename the data layer variable name.  Default is 'dataLayer'",
      "type": "text",
      "default": "dataLayer"
    }
  ],
  "dataLayer": [
    {
      "label": "Site Title",
      "name": "sitetitle",
      "default": "siteTitle",
      "desc": "Check this option to include the Site Title."
    },
    {
      "label": "Site Description / Tagline",
      "name": "sitedescription",
      "default": "siteDescription",
      "desc": "Check this option to include the Site Description / Tagline."
    },
    {
      "label": "Site Platform",
      "name": "siteplatform",
      "default": "sitePlatform",
      "desc": "Check this option to include the platform name: 'WordPress'."
    },
    {
      "label": "Site URL",
      "name": "siteurl",
      "default": "siteUrl",
      "desc": "Check this option to include the Site URL."
    },
    {
      "label": "Post Type",
      "name": "posttype",
      "default": "pageType",
      "desc": "Check this option to include the type of the post or archive page (post, page or any custom post type)."
    },
    {
      "label": "Post Sub Type",
      "name": "postsubtype",
      "default": "pageSubType",
      "desc": "Check this option to include the sub type of the post or archive page (post, page or any custom post type)."
    },
    {
      "label": "Page ID",
      "name": "pageid",
      "default": "pageID",
      "desc": "Check this option to include the page/post ID."
    },
    {
      "label": "Category List",
      "name": "categories",
      "default": "category",
      "desc": "Check this option to include the category names of the post or archive page."
    },
    {
      "label": "Tags",
      "name": "tags",
      "default": "tags",
      "desc": "Check this option to include the tags of the post/page."
    },
    {
      "label": "Author Name",
      "name": "author",
      "default": "author",
      "desc": "Check this option to include the author\"s name of the post/page."
    },
    {
      "label": "Post Date",
      "name": "postdate",
      "default": "pagePostDate",
      "desc": "Check this option to include the date of the post. This will be an object with 4 sub objects: date, year, month, and day."
    },
    {
      "label": "Modified Date",
      "name": "modifieddate",
      "default": "pageModifiedDate",
      "desc": "Check this option to include the last modified date of the post. This will be an object with 4 sub objects: date, year, month, and day."
    },
    {
      "label": "Post Title",
      "name": "posttitle",
      "default": "postTitle",
      "desc": "Check this option to include the meta title of the post/page."
    },
    {
      "label": "Post Excerpt",
      "name": "postexcerpt",
      "default": "postExcerpt",
      "desc": "Check this option to include the excerpt of the post/page."
    },
    {
      "label": "Post Custom Fields",
      "name": "custom",
      "default": "postCustomFields",
      "desc": "Check this option to include the custom fields of the post/page."
    },
    {
      "label": "Post Count",
      "name": "postcount",
      "default": "postCount",
      "desc": "Check this option to include the count of the posts currently shown on the page."
    },
    {
      "label": "Search Term",
      "name": "searchterm",
      "default": "searchTerm",
      "desc": "Check this option to include the search term on the search results page."
    },
    {
      "label": "Search Results",
      "name": "searchresults",
      "default": "searchResults",
      "desc": "Check this option to include the number of search results on the search results page."
    },
    {
      "label": "Search Origin",
      "name": "searchorigin",
      "default": "searchOrigin",
      "desc": "Check this option to include the search origin on the search results page."
    },
    {
      "label": "Logged-in Status",
      "name": "loggedin",
      "default": "loginState",
      "desc": "Check this option to include whether there is a logged in user on your website."
    },
    {
      "label": "Logged-in User Role",
      "name": "userrole",
      "default": "visitorType",
      "desc": "Check this option to include the role of the logged in user."
    },
    {
      "label": "Comments",
      "name": "comments",
      "default": "numberComments",
      "desc": "Check this option to include if a post has comments along with the # of comments."
    }
  ],
  "disable": [
    {
      "label": "Administrator",
      "name": "admin",
      "code": "administrator"
    },
    {
      "label": "Editor",
      "name": "editor",
      "code": "editor"
    },
    {
      "label": "Author",
      "name": "author",
      "code": "author"
    },
    {
      "label": "Contributor",
      "name": "contributor",
      "code": "contributor"
    },
    {
      "label": "Subscriber",
      "name": "subscriber",
      "code": "subscriber"
    },
    {
      "label": "Guest",
      "name": "guest",
      "code": "guest"
    }
  ],
  "credits": {
    "desc": "<strong>Adam Haining</strong><br />Website: <a href='http://www.disruptiveadvertising.com/?utm_medium=social&utm_source=wordpress.org&utm_campaign=dtm_wp_plugin' target='_blank'>www.disruptiveadvertising.com</a><br /><a href='http://www.disruptiveadvertising.com/analytics/tag-management/adobe-dtm-wordpress/?utm_medium=social&utm_source=wordpress.org&utm_campaign=dtm_wp_plugin' target='_blank'>Help With the Plugin</a><br /><a href='https://www.linkedin.com/in/adamhaining' target='_blank'>LinkedIn</a><br /><br />"
  }
}