Skip to content

Commit

Permalink
Add more plausible custom property in the same event call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Apr 29, 2024
1 parent f4dd729 commit edc46d4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/_template/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@
<script defer data-domain="{{ plausible_domain }}" src="{{ plausible_url }}"></script>
<script>
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };
plausible('language',{props:{language:navigator.language.toString().substr(0,2).toLowerCase()}});
plausible(
'language',
{
props:{
language:navigator.language.toString().substr(0,2).toLowerCase(),
language-requested:"{{ language }}",
version:"{{ version }}"
}
}
);
</script>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit edc46d4

Please sign in to comment.