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
cdbc422d
Commit
cdbc422d
authored
Feb 15, 2008
by
hass
Browse files
Added FTP urls to tracking
parent
46fcde43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
downloadtracker.js
downloadtracker.js
+4
-4
No files found.
downloadtracker.js
View file @
cdbc422d
...
...
@@ -16,10 +16,10 @@ gaTrackerAttach = function () {
if
(
trackDownload
&&
isDownload
.
test
(
this
.
href
))
{
// Clean and track the URL.
if
(
LegacyVersion
)
{
urchinTracker
(
'
/download/
'
+
this
.
href
.
replace
(
/^
(
http|https
)
:
\/\/([
a-z-.0-9
]
+
)\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
urchinTracker
(
'
/download/
'
+
this
.
href
.
replace
(
/^
(
http|https
|ftp
)
:
\/\/([
a-z-.0-9
]
+
)\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
}
else
{
pageTracker
.
_trackPageview
(
'
/download/
'
+
this
.
href
.
replace
(
/^
(
http|https
)
:
\/\/([
a-z-.0-9
]
+
)\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
pageTracker
.
_trackPageview
(
'
/download/
'
+
this
.
href
.
replace
(
/^
(
http|https
|ftp
)
:
\/\/([
a-z-.0-9
]
+
)\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
}
}
}
...
...
@@ -27,10 +27,10 @@ gaTrackerAttach = function () {
// are external
// Clean and track the URL
if
(
LegacyVersion
)
{
urchinTracker
(
'
/outgoing/
'
+
this
.
href
.
replace
(
/^http:
\/\/
|https:
\/\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
urchinTracker
(
'
/outgoing/
'
+
this
.
href
.
replace
(
/^http:
\/\/
|https:
\/\/
|ftp:
\/\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
}
else
{
pageTracker
.
_trackPageview
(
'
/outgoing/
'
+
this
.
href
.
replace
(
/^http:
\/\/
|https:
\/\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
pageTracker
.
_trackPageview
(
'
/outgoing/
'
+
this
.
href
.
replace
(
/^http:
\/\/
|https:
\/\/
|ftp:
\/\/
/i
,
''
).
split
(
'
/
'
).
join
(
'
--
'
));
}
}
});
...
...
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