Skip to content

Support for SSR of inline JS #12

@quoininc-huudatran

Description

@quoininc-huudatran

This card is to implement the inline JS with SSR that was part of #11 but not implemented within that card.

    {
      // <script type="text/javascript">
      //    // This is not implemented as part of this issue, but put as a reminder of this need.
      //    window.dataLayer = window.dataLayer || [];
      //    function gtag() { dataLayer.push(arguments); }
      //    gtag('js', new Date());
      //    gtag('config', 'ABC');
      // </script>
      type: "script",
      inline: true,
      content: `
        // This is not implemented as part of this issue, but put as a reminder of this need.
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', '${myGTagID}');
      `
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions