Bladeren bron

Fixed chaining of nodes in tree and excluded HTML and BODY from unique identification

bmallred 12 jaren geleden
bovenliggende
commit
66eb25bdd9
1 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  1. 8 3
      jquery-analytics.js

+ 8 - 3
jquery-analytics.js

79
                });
79
                });
80
            }
80
            }
81
            
81
            
82
            var tagId = $(element).analyticsUniqueId().attr("id");
83
            tree.push(tagName + '[id="' + tagId + '"]');
82
            if (tagName == "HTML" || tagName == "BODY") {
83
                tree.push(tagName);
84
            }
85
            else {
86
                var tagId = $(element).analyticsUniqueId().attr("id");
87
                tree.push(tagName + '[id="' + tagId + '"]');
88
            }
84
        }
89
        }
85
        
90
        
86
        return tree;
91
        return tree;
105
110
106
            // Initialize the data to be collected.
111
            // Initialize the data to be collected.
107
            var data = {
112
            var data = {
108
                id: walkTree($this).join('.')
113
                id: walkTree($this).join(' ')
109
            };
114
            };
110
115
111
            // Attach the client identifier if found.
116
            // Attach the client identifier if found.