Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm considering making similar plugin for other indie privacy analytics: e.g. SimpleAnalytics #2

Open
w4rner opened this issue Nov 2, 2020 · 1 comment

Comments

@w4rner
Copy link

w4rner commented Nov 2, 2020

I'm a n00b and haven't created a Micro.Blog plugin before.
As far as I'm aware, would be almost identical, except I would change html to have script reading:

<script data-mode=“hash” async defer src=“https://scripts.simpleanalyticscdn.com/latest.js”></script>
<noscript><img src=“https://queue.simpleanalyticscdn.com/noscript.gif” alt=“”></noscript>

instead of

<script async defer data-domain="{{ .Site.Params.blog_domain }}" src="https://plausible.io/js/plausible.js"></script>

However, rather than going at the end of it should go at the end of as per guidelines. How do I change where html is inserted? Do I tweak the includes section of the json?

Also there's no need to ask for custom domain, so I could remove:

"fields": [
        {
            "field": "params.blog_domain",
            "label": "Blog Domain",
            "placeholder": "Hostname registered at plausible.io."
        }

in the json file.

Do you have any other advice @LukasRos before I embark?

@adriaandotcom
Copy link

I see you are using insted of ". This is likely due to the text editor you use. Make sure to use a code editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants