Skip to content

Commit

Permalink
Merge branch 'master' into vue-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 25, 2021
2 parents 8799138 + 70131e5 commit e6d34de
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-vue2",
"version": "3.3.1-vue2",
"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 e6d34de

Please sign in to comment.