Skip to content

Commit

Permalink
Hotfix for dataLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 25, 2021
1 parent bac9e59 commit 70131e5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Next

[diff](https://github.com/mib200/vue-gtm/compare/3.3.0...master)
[diff](https://github.com/mib200/vue-gtm/compare/3.3.1...master)

# 3.3.1

[diff](https://github.com/mib200/vue-gtm/compare/3.3.0...3.3.1)

- Hotfix for `dataLayer`

# 3.3.0

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-gtm",
"version": "3.3.0",
"version": "3.3.1",
"description": "Google Tag Manager implementation in Vue application",
"main": "dist/index.js",
"author": {
Expand Down
10 changes: 10 additions & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import pluginConfig, { VueGtmContainer } from "./config";
import { hasScript, loadScript, logDebug } from "./utils";

export interface DataLayerObject extends Record<string, any> {
event: string;
}

declare global {
interface Window {
dataLayer?: DataLayerObject[];
}
}

const inBrowser: boolean = typeof window !== "undefined";

export interface VueGtmTrackEventParams {
Expand Down
7 changes: 0 additions & 7 deletions src/window.d.ts

This file was deleted.

0 comments on commit 70131e5

Please sign in to comment.