Merge pull request #1127 from jakeatdocforce/feedbackwidget-update

Updated feedback widget
This commit is contained in:
Rome Reginelli
2021-09-02 13:53:19 -07:00
committed by GitHub
4 changed files with 23 additions and 60 deletions

View File

@@ -1,21 +1,19 @@
<!-- Feedback Widget -->
<script src="{{currentpage.prefix}}assets/vendor/custom-widget.js"></script>
<script src="{{currentpage.prefix}}assets/vendor/feedback-widget.js"></script>
<div id="feedback-content"></div>
<script>
const widget = new EmbeddableWidget.default({
<script>
// Options
const options = {
analyticsConfig: [
{ name: 'ga', id: 'UA-45576805-2' },
{ name: 'gtm', id: 'GTM-THHW334' },
],
analyticsName: 'Feedback Widget Tracker',
theme: 'xrpl',
opened: false,
parentElement: '#feedback-content',
currentPath: window.location.pathname,
adapter: 'ga',
app:'Feedback Widget',
adapterConfig:{
containerId:"GTM-THHW334",
trackingId:"UA-45576805-2"
}
});
setTimeout(() => {
widget.open();
// EmbeddableWidget.default.unmount();
}, 2000);
parentElement: '#feedback-content',
};
// Init WidgetClass
const r = new WidgetClass(options);
</script>