Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
google_analytics
Commits
2af9a9d7
Commit
2af9a9d7
authored
Nov 26, 2012
by
hass
Browse files
Updated code documenation
parent
b072ec74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
googleanalytics.module
googleanalytics.module
+12
-5
No files found.
googleanalytics.module
View file @
2af9a9d7
<?php
/*
/*
*
* @file
* Drupal Module: GoogleAnalytics
* Adds the required Javascript to the bottom of all your Drupal pages
* to allow tracking by the Google Analytics statistics package.
* Drupal Module: Google Analytics
*
* Adds the required Javascript to all your Drupal pages to allow tracking by
* the Google Analytics statistics package.
*
* @author: Alexander Hass <http://drupal.org/user/85918>
*/
/**
* Define the default file extension list that should be tracked as download.
*/
define
(
'GOOGLEANALYTICS_TRACKFILES_EXTENSIONS'
,
'7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip'
);
// Remove tracking from all administrative pages, see http://drupal.org/node/34970.
/**
* Define default path exclusion list to remove tracking from admin pages,
* see http://drupal.org/node/34970 for more information.
*/
define
(
'GOOGLEANALYTICS_PAGES'
,
"admin
\n
admin/*
\n
batch
\n
node/add*
\n
node/*/*
\n
user/*/*"
);
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment