Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
snac
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
snac
snac
Commits
b4fcf94d
Commit
b4fcf94d
authored
Aug 01, 2023
by
Jason Jordan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove outbound link tracking; will attempt to setup as a custom event in GA4
parent
3293686c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
.gitignore
.gitignore
+1
-0
scripts.js
src/virtualhosts/www/javascript/scripts.js
+0
-7
No files found.
.gitignore
View file @
b4fcf94d
...
...
@@ -8,3 +8,4 @@ log/
#test/
src/virtualhosts/log
src/virtualhosts/output
*.swp
src/virtualhosts/www/javascript/scripts.js
View file @
b4fcf94d
...
...
@@ -255,14 +255,7 @@ function trackOutboundRepoLinks() {
});
}
// Send Outbound link clicks to Google Analytics for logging
function
handleOutboundLinkClicks
(
event
)
{
if
(
typeof
gtag
===
"function"
)
{
// check for Google Analytics 4
gtag
(
'event'
,
'outbound_repo_link'
,
{
'holding_repo_url'
:
event
.
target
.
href
});
}
var
logInfo
=
"url="
+
event
.
target
.
href
;
var
icid
=
$
(
'#constellationid'
).
val
();
var
repoICID
=
$
(
event
.
target
).
data
(
'repoIcId'
);
...
...
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