WP Manifestindependent plugin directory
manifest / builders / divi-button-event-tagger

Divi Button Event Tagger WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Insert missing data-vars for Google Analytics events in Divi theme builder.

★ 1stars
41release downloads
≈10active sites
v1.1.2latest · 3 years ago

Install

Download divi-button-event-tagger.beta.zip From the v1.2.0-beta release on GitHub, Oct 14, 2023

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/spcktr/divi-button-event-tagger/releases/download/v1.2.0-beta/divi-button-event-tagger.beta.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Link and Button Tagger for Divi

This is a simple WordPress plugin that inserts missing Google Analytics data-vars attributes for divi buttons


Description

Once this plugin in installed and activated it will find any Divi theme builder inserted button and insert missing Google Analytics tracking tags.

Buttons that are added using Divi are missing any id field and as such can make it difficult to track automatically.

Some theme builders, such as Divi, don't provide a way for users to insert these attributes easily (or at all in some cases).

This plugin automatically finds the button css class and inserts the missing attributes (found below) so as to make the buttons trackable in Google Analytics.

The results in Google Analytics appear as behavior events as Page title - button name.

Inserted Tags

data-vars-ga-action
data-vars-ga-label
data-vars-ga-category

Installation and Usage

  1. Options to install the plugin
    1. Install through the WordPress plugins page (recommended)
    2. Manually upload contents of the plugin zip and uploading to /wp-content/plugins/divi-button-event-tagger/ folder
  2. Activate the plugin in the 'Plugins' page.
  3. Once installed and activated, the plugin runs automatically for all pages on your WordPress site.
  4. A button_event_selector filter is available if you need to use this with other theme/page builders.

Example button_event_selector Filter

function my_custom_button_event_selector($query_selector) {
    return '.some_other_class';
}
add_filter( 'button_event_selector', 'my_custom_button_event_selector' );

Example Divi Source

This plugin is orginally intended to work with Divi. It can, however, be adapted with any theme/page builder as it is looking for a specific class attribute which can be adjusted.

Default

No attributes set.

<a class="et_pb_button et_pb_more_button et_pb_button_one" href="https://URL.com/contact-form">Get Started Now</a>

After the Tagger is Activated

Google Analytics attributes set.

<a class="et_pb_button et_pb_more_button et_pb_button_one" href="https://URL.com/contact-form" data-vars-ga-category="cta" data-vars-ga-action="click" data-vars-ga-label="Get Started Now">Get Started Now</a>

Releases

5 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
Oct 14, 2023 3 years ago
divi-button-event-tagger.beta.zip
11
v1.1.2 latest
Oct 13, 2023 3 years ago
divi-button-event-tagger.zip
6
Oct 10, 2023 3 years ago
divi-button-event-tagger.zip
7
Oct 1, 2023 3 years ago
divi-button-event-tagger.zip
7
Nov 1, 2020 6 years ago
divi-button-event-tagger.zip
10

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

Divi Button Event Tagger 1.2.0 · audited by WP Registry

No security issues found.

Audited release
1.2.0
Findings
none
Worst severity
—
Content hash
ab5f555510f2f05e24aaac87…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.