Hi George
Apologies for the delay. I have attached two examples, one using GTM and another GTAG. These should work on Spectrum Spatial 2020.1
You will need to add your GA or GTM ID into the respective CustomAnalystModuleConfig.json.
Note that with the release of patch S23 for Spectrum Spatial both the code (the TS file) and the JSON file can be placed into the same folder. This is explained in the release notes at page 4 here
https://docs.precisely.com/docs/sftw/spectrum/release-notes/spectrum-2020-1-S23-release-notes.pdfIf you do not have the patch then you would need to add the JSON entry to the global copy of CustomAnalystModuleConfig.json.
------------------------------
Mustafa Ismail
Precisely Software Inc.
Watford
------------------------------
Original Message:
Sent: 09-21-2021 04:20
From: Mustafa Ismail
Subject: Can we use Google Analytics in SSA 2020?
Hi George
It is possible to add the Google tags as you have described, and we are aware of customers in the UK who have done this. The tags can be added the main SSA index.html under the mobile folder. However, we do not officially support this approach since it requires manual editing of the html and any changes would not be retained on upgrade. If any issues occur the change would need to be reverted.
I have asked our engineering team to provide an extensibility example that can add the Google Analytics tags via code which we will share. This would provide a solution that can be retained on upgrade and does not need editing of the html.
------------------------------
Mustafa mustafa.ismail@pb.com
Pitney Bowes Software Inc.
Watford
Original Message:
Sent: 12-03-2020 20:11
From: George Corea
Subject: Can we use Google Analytics in SSA 2020?
Is it possible to use Google Analytics in SSA?
It seems like all we need to do is to add the following but where should this go?
<mat-expansion-panel-header class="mat-expansion-panel-header mat-focus-indicator ng-tns-c47-24 ng-star-inserted mat-expansion-toggle-indicator-before mat-expanded" role="button" id="mat-expansion-panel-header-0" aria-controls="cdk-accordion-child-0" aria-expanded="true" aria-disabled="false" tabindex="0"><mat-panel-title class="mat-expansion-panel-header-title">Global Site Tag (gtag.js)
</mat-panel-title></mat-expansion-panel-header>Copy and paste this code as the first item into the <head> of every webpage you want to measure.
<ga-tagging-web-snippet>
<!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=G-VFH125CMY8"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-xxxxxxx');</script>
</ga-tagging-web-snippet>
Which file should we change to put this into http://mydomain.com/connect/analyst/mobile/#?
------------------------------
George Corea
Mangoesmapping
Atherton QLD
------------------------------