Spectrum Technology Platform

 View Only
  • 1.  Can we use Google Analytics in SSA 2020?

    Posted 12-03-2020 20:11
    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
    ------------------------------


  • 2.  RE: Can we use Google Analytics in SSA 2020?

    Posted 09-08-2021 20:14
    This is important.
    I'm looking forward to other replies.

    ------------------------------
    Ayman Hamzeh
    Knowledge Community Shared Account
    ------------------------------



  • 3.  RE: Can we use Google Analytics in SSA 2020?

    Employee
    Posted 09-21-2021 04:20

    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
    ------------------------------



  • 4.  RE: Can we use Google Analytics in SSA 2020?

    Employee
    Posted 02-09-2022 06:11
      |   view attached
    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.pdf
    If 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
    ------------------------------

    Attachment(s)

    zip
    google-analytics.zip   2 KB 1 version