google_analytics 7.x-2.8

Bug fixes

Bug fixes after adding Google Tag support

Contributors (3)

DamienMcKenna, dmundra, jenlampton

Changelog

Issues: 2 issues resolved.

Changes since 7.x-2.7:

google_analytics 4.0.2

New features

This release introduces Drupal 10 compatibility and drops support for Drupal 9.2 and below. No other changes were made between 4.0.1 and 4.0.2.

Contributors (4)

Berdir, daniel_j, japerry, nkoporec

Changelog

Issues: 1 issues resolved.

google_analytics 4.0.1

Bug fixes

This is mainly a bugfix and PHP8 compatibility release for the Google Analytics module. it is the last version that will support Drupal 8. Upgrade to Drupal 9 today!

google_analytics 4.0.0

Bug fixes
New features

This is the first full release of the Google Analytics 4 module, supporting the next generation of Google Analytics:
https://support.google.com/analytics/answer/10089681?hl=en

While this 4.0.0 release is 'stable', we will wait until Jan 2022 to make it recommended so site developers can test it more widely and give time for sites to migrate from 3.x to 4.x.

What is new in this release?

google_analytics 4.0.0-alpha1

Bug fixes
New features

This is the first release of the Google Analytics module supporting Gtag 4.0.

What is new in this release?

google_analytics 4.x-dev

New features

This is the latest release to support Google Analytics 4. This supports both gtag and the legacy UA google analytics accounts.

google_analytics 8.x-3.1

Bug fixes
New features

This is mostly a bugfix release designed to work with Drupal 9, it also requires Drupal 8.8.6+.

Other issues fixed since 8.x-3.0:

google_analytics 8.x-2.5

Bug fixes
New features

This is mostly a bugfix release designed to work with Drupal 9, it also requires Drupal 8.8.6+.

All issues fixed since 8.x-2.5:

google_analytics 7.x-2.6

Bug fixes
  • PHP 5.3 fix
  • userId is a disallowed create field.
  • Updated GA URL
  • Change all links to HTTPS

google_analytics 8.x-2.4

Bug fixes
New features
  • Require Drupal 8.5 because of Drupal:messenger()
  • Use addMessage
  • Use messenger
  • Issue #3029302 by thalles: Use $this->messenger() on Controller/GoogleAnalyticsTestController
  • Issue #3011982 by thalles: Coding standards on GoogleAnalyticsStatusMessagesTest
  • Issue #3011973 by thalles: Coding standards in google_analytics.module
  • Issue #2934105 by hass: Use Drupal::messenger()
  • Issue #3026907 by thalles: Replace deprecated REQUEST_TIME
  • Issue #3011993 by thalles: Coding standards in GoogleAnalyticsVisibilityRoles

google_analytics 8.x-3.0

Bug fixes
New features
  • Require Drupal 8.5 because of Drupal:messenger()
  • Use addMessage
  • Use messenger
  • Issue #3029302 by thalles: Use $this->messenger() on Controller/GoogleAnalyticsTestController
  • Issue #3011982 by thalles: Coding standards on GoogleAnalyticsStatusMessagesTest
  • Issue #3011973 by thalles: Coding standards in google_analytics.module
  • Issue #2934105 by hass: Use Drupal::messenger()
  • Issue #3026907 by thalles: Replace deprecated REQUEST_TIME
  • Issue #3011993 by thalles: Coding standards in GoogleAnalyticsVisibilityRoles

google_analytics 8.x-3.0-beta1

First release that implements the new Google GTAG.js API, see https://developers.google.com/analytics/devguides/collection/gtagjs/ for more information.

Keep in mind that there are features missing in Google gtag.js API (8.x-3.x) that exists in Google analytics.js API (8.x-2.x). Therefore if you have advanced features in use you may need to stay at Google Analytics 8.x-2.x until these missing features come back.

google_analytics 6.x-4.4

Bug fixes

google_analytics 7.x-2.4

Bug fixes
New features
  • Issue #2727007 by hass: Update javascript tracking snippet
  • Issue #2571481 by slydevil, hass: Locally cached file is not gzipped
  • Issue #2903906 by hass: Assuming /404.html is at the root of site is confusing
  • Issue #2693595 by hass: Password reset page may send personal data to Google Analytics
  • Issue #2846704 by bc, hass: Add setting for premium accounts
  • Issue #2861691 by pmagunia: Default UA input length on Admin form
  • Issue #2808067 by hass: Add test for trackDomainMode value

google_analytics 8.x-2.2

Bug fixes
New features
  • Issue #2727007 by hass: Update javascript tracking snippet
  • Documentation fix
  • Issue #2903906 by hass: Assuming /404.html is at the root of site is confusing
  • Issue #2693595 by hass: Password reset page may send personal data to Google Analytics
  • Issue #2846704 by hass: Upgrade premium setting
  • Issue #2846704 by bc, hass: Add setting for premium accounts
  • Issue #2876463 by jieyyal: Fix missing query string when system.css_js_query_string is NULL
  • Issue #2571481 by hass: Uninstall test updated

google_analytics 7.x-2.3

Security update
Bug fixes
New features

See Google Analytics - Moderately Critical - Cross Site Scripting - SA-CONTRIB-2016-042.

  • Issue #159865 by hass, larowlan: add JS snippets for google analytics permission
  • Issue #2765571 by kmbremner: Correct string in admin messages tab
  • Issue #2037595 by hass: Tests if Custom Dimensions token form validation works.

google_analytics 6.x-4.3

Security update
Bug fixes
New features

See Google Analytics - Moderately Critical - Cross Site Scripting - SA-CONTRIB-2016-042.

  • Issue #159865 by hass, larowlan: add JS snippets for google analytics permission
  • Issue #2765571 by kmbremner: Correct string in admin messages tab

google_analytics 6.x-4.1

Bug fixes
New features
Insecure

google_analytics 6.x-4.0

New features
Insecure

This version implements the latest Analytics.js API well known as Google Universal Analytics.

New features:

  • Supports Analytics.js API
  • Cross domain tracking
  • User ID tracking across devices
  • Dimensions and metrics support
  • Changing URL fragments can be tracked as pageviews
  • Debug mode with analytics_debug.js

All Google documentation links have been updated.

google_analytics 7.x-2.0

New features
Insecure

This version implements the latest Analytics.js API well known as Google Universal Analytics.

New features:

  • Supports Analytics.js API
  • User ID tracking across devices
  • Dimensions and metrics support
  • Changing URL fragments can be tracked as pageviews
  • Debug mode with analytics_debug.js

All Google documentation links have been updated.

google_analytics 6.x-3.5

Bug fixes

#1836896: Outbound links not being tracked due to variable name bug

Changes in 3.4:

New features
* #1595176: Allow tokens in custom variable names

Tasks/Bugfixes:
* Code cleanup: Removed deprecated segmentation code.
* #1817562: Keep the internal URL for Google Analytics website overlay intact.
* #1801020: Track colorbox as pageview
* #1425358: Only track full-qualified links as external, block "javascript:" and maybe other
* #1113550: JavaScript: Uncaught TypeError - Cannot call method 'replace' of undefined
* #1608310: Cross-domain link tracking fails because it does not return false
* #1801046: Invalid jQuery selectors causing errors in IE8 using updated jQuery (1.7+)
* #1797988: Added some DNT tests.
* Added more forbidden tokens to the blacklist.
* Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
* #1509610: Invalid dashes in UA–xxxxxxxx–y cannot copied & pasted from Google Analytics website
* #1804716: Setup optional modules in .test's fails
* Remove double quotes from module name
* #1793658: Update links to Google Analytics help and reference pages.
* #1783870: Custom variables can be 128 byte long now (Google API change)
* #1774238: Update link to "Setting Up Site Search for a Profile"
* #1368748 Reduced severity if UA account number not entered.

google_analytics 6.x-3.4

New features
Bug fixes

New features
* #1595176: Allow tokens in custom variable names

Tasks/Bugfixes:
* Code cleanup: Removed deprecated segmentation code.
* #1817562: Keep the internal URL for Google Analytics website overlay intact.
* #1801020: Track colorbox as pageview
* #1425358: Only track full-qualified links as external, block "javascript:" and maybe other
* #1113550: JavaScript: Uncaught TypeError - Cannot call method 'replace' of undefined
* #1608310: Cross-domain link tracking fails because it does not return false
* #1801046: Invalid jQuery selectors causing errors in IE8 using updated jQuery (1.7+)
* #1797988: Added some DNT tests.
* Added more forbidden tokens to the blacklist.
* Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
* #1509610: Invalid dashes in UA–xxxxxxxx–y cannot copied & pasted from Google Analytics website
* #1804716: Setup optional modules in .test's fails
* Remove double quotes from module name
* #1793658: Update links to Google Analytics help and reference pages.
* #1783870: Custom variables can be 128 byte long now (Google API change)
* #1774238: Update link to "Setting Up Site Search for a Profile"
* #1368748 Reduced severity if UA account number not entered.
* Deleted obsolete googleanalytics_trackpageloadtime variable.
* Revert "#1147322: Added Site Speed report support"

google_analytics 7.x-1.3

New features
Bug fixes

New features
* #1300240: Add tracking for form error messages
* #1741514: Add support for DoubleClick remarketing tracker
* #1595176: Allow tokens in custom variable names
* #1702522: Declare variables for Variable API module and i18n module
* #1586356: Missing 'weight' support from hook_field_widget_info() makes it impossible to sanely order widgets

Tasks/Bugfixes:
* Code cleanup: Removed deprecated segmentation code.
* Support new overlay token_tree browser
* #1817562: Keep the internal URL for Google Analytics website overlay intact.
* #1801020: Track colorbox as pageview
* #1425358: Only track full-qualified links as external, block "javascript:" and maybe other
* #1113550: JavaScript: Uncaught TypeError - Cannot call method 'replace' of undefined
* #1608310: Cross-domain link tracking fails because it does not return false
* #1801046: Invalid jQuery selectors causing errors in IE8 using updated jQuery (1.7+)
* #1797988: Added some DNT tests.
* Added more forbidden tokens to the blacklist.
* Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
* #1509610: Invalid dashes in UA–xxxxxxxx–y cannot copied & pasted from Google Analytics website
* #1804716: Setup optional modules in .test's fails
* Remove double quotes from module name
* #1793658: Update links to Google Analytics help and reference pages.

google_analytics 7.x-1.2

New features
Bug fixes

Critical bugs

  • #1057914 by hass: Rollback of document.location that is broken with target and window.open() and maybe other special JS cod
  • #339235: JS error "text" is undefined

New features

Other issues:

  • Backported - What are you tracking?
  • Reorder fieldsets from general to specific from top down
  • Collapse custom variables by default
  • #1056786 by JacobSingh: Tests failing in 7.1.1
  • Added one more doc comment
  • Missed uninstall of variable for #1055980
  • #1056924: Exclude batches from tracking
  • Fieldset not collapsible
  • jquery.closest() can be used to find the closest link of a clicked region and it may be much faster. This is limited to jquery 1.3+ so we can use it only in D7.
  • Corrected wording
  • Wrong cache variable used.
  • Removing translation directories
  • Uninstall variable has wrong name
  • Reorder $custom_var before $codesnippet_before to allow customvar delete/read.

google_analytics 6.x-3.3

New features
Bug fixes

Critical bugs

  • #1057914 by hass: Rollback of document.location that is broken with target and window.open() and maybe other special JS cod
  • #339235: JS error "text" is undefined

New features

Other issues:

  • Backported - What are you tracking?
  • Reorder fieldsets from general to specific from top down
  • Collapse custom variables by default
  • Added one more doc comment
  • Missed uninstall of variable for #1055980
  • #1056924: Exclude batches from tracking
  • Fieldset not collapsible
  • Corrected wording
  • Wrong cache variable used.
  • Removing translation directories
  • Uninstall variable has wrong name
  • Reorder $custom_var before $codesnippet_before to allow customvar delete/read.
  • #1070574: Empty page filter if form has been reseted to defaults
  • Code cleanup. Renamed constant.
  • Prepare code for #1096478: Make Google Analytics stats more accurate by watching X-PURPOSE and X-MOZ header

google_analytics 6.x-3.2

New features
Bug fixes

NOTE: If the token module is installed on your site the minimum required token version is 6.x-1.14, but for some technical reasons 6.16 or the latest DEV (mid december 2010 or later) is highly recommended.

New features:

  • #936684: Exclude roles from tracking
  • #807320: Track outgoing links as targets / Disable event tracking optionally for outgoing links.

Bugfixes and other changes:

  • Translations can be found on l.d.o. Use l10n_update module to install them automatically.
  • Do not read css_js_query_string variable if not required.
  • #1039394: Fix for E_ALL warning if $account->roles is empty / Prevent possible token warnings.
  • Typo in loose -> lose fixed.
  • #1038740: Followup - Added migration link for help.
  • Delay the outbound click by a fraction of a second. See http://www.google.com/support/analytics/bin/answer.py?answer=55527
  • Doubled the rows of the pages textarea.
  • Rename all variables and UI from Outgoing to Outbound
  • As per documentation at http://code.google.com/intl/en/apis/analytics/docs/gaJS/gaJSApiDomainDir... - '_link' already does the document.location internally.
  • Readme: Roles exclusion do not required PHP code snippet any longer (build in feature).

google_analytics 7.x-1.1

New features
Bug fixes

NOTE: If the token module is installed on your site the minimum required token version is 7.x-1.0-beta1.

New features:

  • #339235: Add multi/cross domain tracking
  • #936684: Exclude roles from tracking
  • #807320: Track outgoing links as targets / Disable event tracking optionally for outgoing links.

Bugfixes and other changes:

  • Translations can be found on l.d.o. Use l10n_update module to install them automatically.
  • Custom code snipped 'after' may not removed after backup.
  • Do not read css_js_query_string variable if not required.
  • #1039394: Fix for E_ALL warning if $account->roles is empty / Prevent possible token warnings.
  • Typo in loose -> lose fixed.
  • #1038740: Followup - Added migration link for help.
  • Vertical tab has not always shown the correct status of page visibility settings in vertical tab summary().
  • Order variables in hook_uninstall by alphabet.
  • Delay the outbound click by a fraction of a second. See http://www.google.com/support/analytics/bin/answer.py?answer=55527
  • Remove blank line.
  • Doubled the rows of the pages textarea.
  • Replace tab with spaces.
  • Rename all variables and UI from Outgoing to Outbound

google_analytics 7.x-1.0

NOTE: If the token module is installed on your site the minimum required token version is 7.x-1.0-beta1.

  • #848350 Disabling user tracker in user/edit doesn't work
  • #811156: Add anonymize visitors IP address setting and enable it for German sites.
  • #270819: Ignore visibility filters for 404 or 403 status code
  • Update hooks now return strings or throw exceptions, and update_sql() is no more
  • Updated some descriptions for new GA API.
  • #812606: Change the way how JS is attached to hook_page_alter()
  • #789326 by Gábor, hass: Drupal 7-ize the UI and fix some terminology
  • #814334: JS code not attached to scopes
  • Added configure link
  • #788392 by Gábor: hook_perm() name not updated
  • #695998: Broken link
  • Fix custom user settings for hook_user revam
  • hook_footer() is gone, upgrade code
  • Fix one drupal_add_js() not upgraded to D7
  • Add stream wrapper / public folder support
  • Add 'file' back to menu after the roll back
  • Wrap JS code in (function ($) { ... })(jQuery);
  • $form_state is automatically passed as reference to functions
  • Added file back to menu links
  • drupal_to_js() has been renamed to drupal_json_encode().

google_analytics 6.x-3.1

New features
Bug fixes

NOTE: If the token module is installed on your site the minimum required token version is 6.x-1.14, but for some technical reasons 6.16 or the latest DEV (mid december 2010 or later) is highly recommended.

Major new features:

  • #609892 by joetsuihk, hass, bec, jmesam: Added Multiple custom variables

Fixes and changes:

  • Fixed broken ga.js URL if i18n language path prefix is used.
  • Added dummy query-string to ga.js to gain control over browser-caching.
  • #477830 by hass: Refactored local file caching and cache clear logic
  • #928360: Warning: rmdir(), check if directory exists
  • #477830: Followup, no need to clear JS cache as ga.js is not aggregated with core
  • #933204: Wrong URL (404) to module admin page at status report
  • Refactored _googleanalytics_cache() and hook_cron
  • Added purge watchdog message.
  • #566656: Can't segment anonymous user
  • #987116 by pobster: Simpletests fail in 3.x because of "Web Property ID" name change.
  • #990882 by gilgabar: User segmentation via 'User roles' does not require profile module.
  • Add token validation to form field, requires token latest DEV (mid december 2010)
  • Add more blacklisted tokens

google_analytics 6.x-3.0

New features
Bug fixes

Drush users: Upgrade from 6.x-2.2 to later version fails, see Drush updatecode should fork to a backend process to avoid problems. Recommendation: Don't use Drush!

Important changes

  • #336924: Massive page rendering slowdown with many links
  • #648284 by hass: Support for Asynchronous Tracking
  • #679404: warning: Parameter 1 to profile_load_profile(), Fix for PHP 5.3

Normal fixes and changes:

  • #877754 by retrodans: Lots of external clicks in GA, but no detail
  • by hass: Try to update Google Analytics custom code snippet to async version
  • Added a FIXME comment that this is only an interim solution for _anonymizeIp().
  • #811156 by hass: Found some people reporting that _gaq.push(["_gat._anonymizeIp"]) works in async code.
  • #795294 by hass: Make account number validation more foolproof
  • #866868 by neilnz, hass: Support 403 and 404 error detection in Pressflow
  • #270819: Change documentatio
  • D7 backport of some UI text changes
  • Updated sample JS code in test.
  • D7 backport of some UI text changes.
  • Updated some descriptions for new GA API.
  • #679404: don't run profile specific code if no fields selected for tracking.

google_analytics 6.x-2.3

New features
Bug fixes

NOTE: It's recommended to use the Google Analytics module v3.0. There is no reason to stay away from 3.x, except your are running Ubercart that hasn't been upgraded yet to the latest tracker API.

Drush: Upgrade from 6.x-2.2 to later version fails, see Drush updatecode should fork to a backend process to avoid problems. Recommendation: Don't use Drush!

Important changes

  • #336924: Massive page rendering slowdown with many links
  • #679404: warning: Parameter 1 to profile_load_profile(), Fix for PHP 5.3

Normal fixes and changes:

  • #877754 by retrodans: Lots of external clicks in GA, but no detail
  • #795294 by hass: Make account number validation more foolproof
  • #866868 by neilnz, hass: Support 403 and 404 error detection in Pressflow
  • #270819: Change documentation
  • Updated sample JS code in test.
  • #679404: don't run profile specific code if no fields selected for tracking.
  • Refactoring $fields array building.
  • Only select used fields from profile_field table
  • Changed author
  • Cleanup: Moved hook_requirements into .install file
  • Changed selectbox size

google_analytics 5.x-1.9

Bug fixes

Always name the user setting checkbox "Enable user tracking". Not sure what I've tested there...

Changes from 2.1:
This is a maintenance release with the following changes. If you have jquery_update installed - this upgrade is a MUST HAVE to make the GA module working as expected!

Usability:
- Dynamic title and description for user opt-in/-out setting
- #329750 patch by christefano: Help text is missing command character (for users of OS X).

google_analytics 6.x-2.2

Bug fixes

Always name the user setting checkbox "Enable user tracking". Not sure what I've tested there...

Changes from 2.1:
This is a maintenance release with the following changes:

Usability:
- Dynamic title and description for user opt-in/-out setting
- #329750 patch by christefano: Help text is missing command character (for users of OS X).

Features:
- #347359: AdSense reports integration with Google Analytics
- #357944: Support for try / catch (latest tracking code style)

google_analytics 5.x-1.8

New features
Bug fixes

This is a maintenance release with the following changes. If you have jquery_update installed - this upgrade is a MUST HAVE to make the GA module working as expected!

Usability:
- Dynamic title and description for user opt-in/-out setting
- #329750 patch by christefano: Help text is missing command character (for users of OS X).

Features:
- #347359: AdSense reports integration with Google Analytics
- #357944: Support for try / catch (latest tracking code style)

Pages

Subscribe with RSS Subscribe to Releases for Google Analytics