We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I have installed the plugin as suggested here https://github.com/kraihn/cordova-plugin-tag-manager
Below is my code
config.xml <plugin name="com.jareddickson.cordova.tag-manager" spec="https://github.com/kraihn/cordova-plugin-tag-manager" />
<plugin name="com.jareddickson.cordova.tag-manager" spec="https://github.com/kraihn/cordova-plugin-tag-manager" />
Code to initiate GTM `onDeviceReady: function() { var tagManager = cordova.require('com.jareddickson.cordova.tag-manager.TagManager'); var trackingId = 'GTM-XXXXXX(application GTM Id)'; var intervalPeriod = 30; var successGtm = function() { alert("5"); }; var errorGtm = function() { alert("6"); }; var errorDisGtm = function() { alert("7"); };
// Initialize Tag Manager tagManager.init(successGtm, errorGtm, trackingId, intervalPeriod); tagManager.trackEvent(successGtm, errorGtm, 'Init', 'Any-Event', 'Any-Event', 1); tagManager.dispatch(successGtm,errorDisGtm); if (navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) { hzm.shared.onDeviceReady(hzm.hubView.afterContentLoad); } else { hzm.shared.onDeviceReady(); setTimeout(hzm.hubView.afterContentLoad, 0); //this is the browser } hzm.events.onDeviceReady(); setInterval(hzm.shared.keepAlive, hzm.constants.TIME.KEEP_ALIVE); hzm.vc.resetValues(); }`
When I run the application in xCode getting the following error:
I have also noticed that xCode Plugins folder doesn't have the CDVTagManager.m file inside it.
Please suggest and advise, it's a bit urgent. Thanks in advance.
Getting the following error after adding the CDVTagManager.m file manually
The text was updated successfully, but these errors were encountered:
Can someone please advise and suggest?
Regards!
Sorry, something went wrong.
@sashibrai, please see issue #38
No branches or pull requests
Hi,
I have installed the plugin as suggested here https://github.com/kraihn/cordova-plugin-tag-manager
Below is my code
config.xml
<plugin name="com.jareddickson.cordova.tag-manager" spec="https://github.com/kraihn/cordova-plugin-tag-manager" />
Code to initiate GTM
`onDeviceReady: function() {
var tagManager = cordova.require('com.jareddickson.cordova.tag-manager.TagManager');
var trackingId = 'GTM-XXXXXX(application GTM Id)';
var intervalPeriod = 30;
var successGtm = function() {
alert("5");
};
var errorGtm = function() {
alert("6");
};
var errorDisGtm = function() {
alert("7");
};
When I run the application in xCode getting the following error:

I have also noticed that xCode Plugins folder doesn't have the CDVTagManager.m file inside it.
Please suggest and advise, it's a bit urgent. Thanks in advance.
Getting the following error after adding the CDVTagManager.m file manually

The text was updated successfully, but these errors were encountered: