3K members online now
3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

AnomynizeIP function TypeError

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi All,


A client of us is using the classic dc.js script and is trying to implement the anomynizeIP function for multiple trackers on a single page. When debugging this implementation, we get the following error: Called method "_anonymizeIp" threw exception.TypeError: Cannot read property 'apply' of undefined. 


The first tracker does not give this error, but the second one does. Does this mean that the anonymizeIP function is not applied for the second tracker. The script for the second tracker look like this:




AppSettings.secondaryAnalyticsEnabled = true;
window.disableSpecificStr = 'ga-disable-UA-XXXXXX-1';

if (isAnalyticsDisabled(disableSpecificStr)) {
window[disableSpecificStr] = true;
AppSettings.secondaryAnalyticsEnabled = false;

['b._setAccount', 'UA-XXXXXX-3'],
['b._set', 'currencyCode', 'EUR'],

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src=('https:' === document.location.protocol ? 'https://' : 'http://') + '';
var s = document.getElementsByTagName('script')[1]; s.parentNode.insertBefore(ga, s);

var dataLayer = [];




Any help would be hugely appreciated!


Kind regards,