First, you need to customize the address of your page in Google Sites.
Go to the PAGES tab then Properties on your page:

Then ADVANCED options, and choose a personalized path at your convenience:

Finally, you then INSERT an EMBED Block on your page:

And you paste your universal code there from the INSTALLATION tab of the ADMIN GraphComment, by adding a ‘uid’ VARIABLE with the same name as the custom path defined previously in the first step.
Example :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<div id="graphcomment"></div>
<script type="text/javascript">
/* - - - CONFIGURATION VARIABLES - - - */
// make sure the id is yours
window.gc_params = {
graphcomment_id: 'demo-gc',
uid: 'pagetest',
// if your website has a fixed header, indicate it's height in pixels
fixed_header_height: 0,
};
/* - - - DON'T EDIT BELOW THIS LINE - - - */
(function() {
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
gc.src = 'https://graphcomment.com/js/integration.js?' + Math.round(Math.random() * 1e8);
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
})();
</script>
|
Reproduce this operation on every pages on by one with a different uid, until the New Google Sites authorize Gadgets.