New to google tag manager, I have just moved my ga4 tags to it and I have the following set up, intentionally under 1 container.
mydomain.com (gtag 1) site2.mydomain.com (gtag 2)
I am using a lookup table against the hostname so that events are sent to the relavent gtags for the 2 sites, which are quite different in structure. (sales portal vs admin portal).
I wish to send a custom event that occurs in site2 (signup) to both tags, so that a sales journey that started in site 1 and ended in a user signing up in site 2 can be marked as a complete journey/conversion.
I have successfully set up such an event in tag manager, by using comma seperated measurement ID for this event. In preview I belive I am correctly seeing the event being sent to both tags.
However I see this error in the preview window
This Google tag should have been loaded before sending an event. To fix this, add a Google tag for G-xxxxxxxxx to your container and configure it to fire on the Initialization - All Pages trigger.
Because of course site1 was not initiallised until this event and this was the only event I desired to return.
My question is 2 fold.
Do I need to worry about this initalisation? note, I dont wish to send any other events from site2, only a few custom events that I will specific in this way.
secondly, do I need to include any specific information in the parameters for anaytics to be able to link this event back to a user journey in site1 ? Both sites are under the same domain.
thank you