Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions tutorials/quickstart/Solution/ClientUI/wwwroot/Content/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
//Google Universal Analytics initialization
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-20451773-2');
ga('set', 'allowAdFeatures', false);


//Google GA4 initialization
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
Expand Down Expand Up @@ -77,18 +70,11 @@ _kms('//scripts.kissmetrics.io/' + _kmk + '.2.js');

$(function () {

var gaEvt = function (category, action, label) {
console.log('GA', category, action, label);
window.ga('send', 'event', category, action, label);
};

GA4.quickStartRunning();
gaEvt('QuickStart', 'Running', SOLUTION_VERSION);
_kmq.push(['record', 'QuickStart-Running-Control']);

window.sentMessage = function () {
GA4.quickStartMessageSent();
gaEvt('QuickStart', 'SentMessage', SOLUTION_VERSION);
_kmq.push(['record', 'QuickStart-SentMessage-Control']);
};

Expand All @@ -99,11 +85,9 @@ _kms('//scripts.kissmetrics.io/' + _kmk + '.2.js');
}

GA4.quickStartDisplayedLicenseButton();
gaEvt('QuickStart', 'DisplayedLicenseButton', SOLUTION_VERSION);

licenseBtn.attr('href', 'https://particular.net/license/nservicebus?v=' + window.NSB_VERSION + '&t=0').click(function (e) {
GA4.quickStartClickedLicenseButton();
gaEvt('QuickStart', 'ClickedLicenseButton', SOLUTION_VERSION);
});

});
Expand Down
1 change: 0 additions & 1 deletion tutorials/quickstart/tutorial-extending-the-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ You also implemented an additional event subscriber, showing how to decouple ind
$('#tweet-completion').on('click', function (e) {
e.preventDefault();
gtag('event','quick_start_tweet_completion_click', { 'send_to': 'G-GMZ1FS541B' });
window.ga && window.ga('send', 'event', 'QuickStart', 'TweetCompletionClick');
window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent('I just completed the #NServiceBus Quick Start tutorial at docs.particular.net/tutorials/quickstart'));
});
});
Expand Down