Android Google Analytics did not generate a configuration file, firebase conflict

At first, I included firebase and its analysis in my project. It works well, but compared with Google Analytics, I want to include both after realizing that firebase Analytics has no real-time data and other functions. Now, when I try to generate a configuration file to include Google Analytics in my application, it redirects me to the firebase console, I cannot get a new profile in this console

firebase redirected image

In firebase, I only get the old version of the configuration file. Can someone guide me to update the version here?

The problem is that I will not be able to generate XML - a global for Google Analytics_ tracker.

resolvent:

Since firebase is built around firebase analytics, unfortunately, it does not include the Google Analytics trace ID in the configuration file!

The easiest way is to manually add the tracker XML, and then you don't have to worry about the configuration file of Google Analytics. You have a lot of things that can be put in there, but to recreate the settings through the Google services plug-in, please use:

File: RES / XML / Global_ tracker.xml

<?xml version="1.0" encoding="utf-8" ?>
<resources>
   <string name="ga_trackingId">UA-XXXX-X</string>
</resources>

Replace the tracking information in ua-xxxx-x. Google Analytics console with the tracker ID in admin >

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>