java.lang.Object
com.aoapps.ant.tasks.InsertGoogleAnalyticsTracking
Inserts the modern Google Analytics
 Global Site Tag
 into the 
<head> of all SeoJavadocFilter.FILTER_EXTENSION files in ZIP files.
 Must be used with HTML 5.
 This does not have any direct Ant dependencies. If only using this class, it is permissible to exclude the ant dependencies.
- Author:
 - AO Industries, Inc.
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTrackingCodeToZip(File file, String googleAnalyticsTrackingId) Inserts the modern Google Analytics Global Site Tag into the<head>of allSeoJavadocFilter.FILTER_EXTENSIONfiles in the given ZIP file. 
- 
Method Details
- 
addTrackingCodeToZip
public static void addTrackingCodeToZip(File file, String googleAnalyticsTrackingId) throws IOException Inserts the modern Google Analytics Global Site Tag into the<head>of allSeoJavadocFilter.FILTER_EXTENSIONfiles in the given ZIP file.- Parameters:
 file- SeeInsertGoogleAnalyticsTrackingTask.setFile(java.lang.String)googleAnalyticsTrackingId- SeeInsertGoogleAnalyticsTrackingTask.setGoogleAnalyticsTrackingId(java.lang.String)- Throws:
 IOException
 
 - 
 
