web/assets/js/_pv-config.js
2021-01-19 00:01:01 +08:00

16 lines
405 B
JavaScript

/*!
PV configuration and Javascript conversion.
*/
const proxyEndpoint = "{{ site.google_analytics.pv.proxy_endpoint }}";
{% if site.google_analytics.pv.cache and site.google_analytics.pv.enabled %}
{% assign enabled = true %}
{% else %}
{% assign enabled = false %}
{% endif %}
const pvCacheEnabled = {{ enabled }};
const pvCacheData = "{{ '/assets/js/data/pageviews.json' | relative_url }}";