SOLVED

Setting Date on Google Analytics Connector?

%3CLINGO-SUB%20id%3D%22lingo-sub-182039%22%20slang%3D%22en-US%22%3ESetting%20Date%20on%20Google%20Analytics%20Connector%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182039%22%20slang%3D%22en-US%22%3EI%20want%20to%20attach%20click%20event%20of%20google%20analytics%20to%20examine%20the%20number%20of%20PDF%20downloads%20of%20the%20library.%3CBR%20%2F%3EThe%20sharepoint%20I%20have%20is%20not%20changed%20in%20o%20365.%3CBR%20%2F%3EPlease%20teach%20me%20if%20there%20is%20a%20way%20to%20set%20it%20with%20just%20javascript.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-182039%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-182115%22%20slang%3D%22en-US%22%3ERe%3A%20Setting%20Date%20on%20Google%20Analytics%20Connector%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182115%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3EThank%20you.%20I'll%20try!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-182068%22%20slang%3D%22en-US%22%3ERe%3A%20Setting%20Date%20on%20Google%20Analytics%20Connector%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182068%22%20slang%3D%22en-US%22%3EYep%2C%20you%20can%20inject%20required%20JavaScript%20or%20by%20means%20of%20a%20SPFx%20extension%3A%20%3CA%20href%3D%22https%3A%2F%2Fcode.msdn.microsoft.com%2Foffice%2FImplementing-Google-cb2cc027%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcode.msdn.microsoft.com%2Foffice%2FImplementing-Google-cb2cc027%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor
I want to attach click event of google analytics to examine the number of PDF downloads of the library.
The sharepoint I have is not changed in o 365.
Please teach me if there is a way to set it with just javascript.
2 Replies
best response confirmed by 江了奈 沼尻 (New Contributor)
Solution
Yep, you can inject required JavaScript or by means of a SPFx extension: https://code.msdn.microsoft.com/office/Implementing-Google-cb2cc027
Hi
Thank you. I'll try!