Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Specify the gtag account to send the event to. Fixes error were eve…
Browse files Browse the repository at this point in the history
…nts were being pushed to clients installs
  • Loading branch information
fredbradley committed Apr 11, 2018
1 parent 8f0461e commit 2ba5567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nagios-wordpress-updates-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Nagios Wordpress Updates Checker
Description: Nagios Wordpress Updates Checker
Author: Fred Bradley
Version: 1.9.15
Version: 1.9.16
Author URI: http://fred.im/
Network: true
*/
Expand Down
1 change: 1 addition & 0 deletions src/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function frbtagnagios(){dataLayer.push(arguments)};

frbtagnagios('config', '<?php echo self::$analytics_id; ?>');
frbtagnagios('event', loadType, {
'send_to': ["<?php echo self::$analytics_id; ?>"],
'event_category': "<?php echo get_bloginfo('name'); ?>",
'event_label': url,
'transport_type': 'beacon'
Expand Down

0 comments on commit 2ba5567

Please sign in to comment.