I am trying to add
Google Play Campaign Attribution to my app, using Google Analytics. I am already using Google Analytics successfully in my app using Analytics 3 library.
To track installation referrer data, I added the following to Manifest file.
AddApplicationText(
<!-- Used for Google Play Store Campaign Measurement-->;
<service android:name="com.google.analytics.tracking.android.CampaignTrackingService" />
<receiver android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver" android:exported="true" />
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
)
When I compile, I get the following error:
Parsing code. 0.10
Compiling code. 0.10
Compiling layouts code. 0.00
Generating R file. Error
AndroidManifest.xml:35: error: Error parsing XML: mismatched tag
The line 35 in Manifest xml file is </receiver> from the above block of code.
What could be wrong here?