generated from nhcarrigan/template
chore: backup configs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { apiInitializer } from "discourse/lib/api";
|
||||
|
||||
export default apiInitializer((api) => {
|
||||
const analytics = document.getElementById('analytics');
|
||||
const title = document.querySelector('title');
|
||||
analytics.setAttribute('event-page', title.innerText ?? "NHCarrigan Forum");
|
||||
analytics.setAttribute('event-path', window.location.pathname);
|
||||
});
|
||||
Reference in New Issue
Block a user