Hi all,
I created a very simple panel extension. All the extension does is send events to Google Analytics on page view.
my extension is composed of
- panel.html - loads the different JS files
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, shrink-to-fit=no">
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
<script src="jquery.min.js"></script>
<script src="viewer.js" type="text/javascript"></script>
<title>Viewer</title>
- viewer.js - sends the GA event on page view
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js','ga')
;
ga('create', 'UA-XXXXX-1', 'auto');
ga('send', 'pageview');
console.log('extension test')
- jquery.min.js
- config.html - the extension needs no configuration:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, shrink-to-fit=no">
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
</head>
<body>
<h1>Geolocation tracker</h1>
<h2>No Configuration needed, on page view an event is sent to Google Analytics</h2>
<h3>Provide Marketplayz clients with an easy way to monitor their viewers Geo Locations</h3>
</body>
</html>
- index.js - to run the extension locally
When i test my extension with Twitch Developer Rig
its working.
I can also see the extension in the channel i added to test this extension.
But the extension was rejected twice with the following notes:
1.2: We are unable to complete a full review of your Extension due to its failure to load. Please do not submit test Extensions for review
1.3: The functionality of your Extension is not intuitive therefore, we could not test it. Please update your description and/or configuration instructions to better describe how to use your Extension. You can also provide testing instructions, such as test account/email credentials. Please do not submit test Extensions for review.
1.5: We were unable to successfully configure and activate your Extension.
I’m really not sure how to proceed with those errors, because as i see it its the simplest extension i could make - it does nothing else but sending events to Google Analytics on pageview, and its working ( i can see events in GA)
Please help !!