The IFrame injection can be done after the end of the server 2 server injection protocol.
The last request (/batchInjectPointSectoEnd) of this protocol return a temporary token, which allows you to recover a session in GTM using the injected data.
To inject GTM, you must inject to an IFrame, the following URL :
https://app.geoconcept.com/gtm/gtmintegrationauth?gcTempToken=SESSION_TOKEN&token=TOKEN
In this URL, you have to replace the following pattern :
- SESSION_TOKEN : by the value of the session token retrieved by the last server 2 server injection protocol
- TOKEN : by the authentication token retrieved before doing the injection.
You can add the following parameters to the URL :
- lang : to set the language to use in the interface. The language must be a 2 characters ISO code.
- country : the main country used for the sectorization. The country code must be a 2 characters ISO code.
-
profile : the profile to use. Each profile configure a specific display of the interface (with or without menu, header, footer, buttons, …) Available profiles are:
- GC_OTC_DISTRICT
- GC_OT
- GC_OT_DISTRICT
- GC_TMC
- GC_TSC
- GC_TSC_DISTRICT