Hi there,
Thanks for reaching out.
I can see that you're having some issues with two AppMeasurement instances running on the same page. I've investigated the issue and found the following possible solutions:
- Use different namespaces for each AppMeasurement instance. This will prevent the two instances from conflicting with each other.
- Use the disableSync property to disable synchronous image requests. This will improve performance and prevent the two AppMeasurement instances from blocking each other.
- Use the forceSend property to force all hits to be sent to both reporting suites. This may improve the accuracy of your data, but it may also increase the load on your servers.
I recommend that you try the first solution first. If that doesn't work, you can try the second or third solution.
Here is some additional information about each solution:
- Using different namespaces: Each AppMeasurement instance can be given a unique namespace. This will prevent the two instances from conflicting with each other, even if they are using the same tracking code. To use different namespaces, you need to set the namespace property on each AppMeasurement instance.
- Disabling synchronous image requests: Synchronous image requests block the page until the image has finished loading. This can cause performance problems, especially if the images are large. To disable synchronous image requests, you can set the disableSync property to true on each AppMeasurement instance.
- Forcing all hits to be sent to both reporting suites: By default, AppMeasurement will only send hits to the reporting suite that is configured in the tracking code. To force all hits to be sent to both reporting suites, you can set the forceSend property to true on each AppMeasurement instance.
I hope this helps! Please let me know if you have any other questions.
Thanks,