Skip to content

Commit

Permalink
implemented encodeString value to save in google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jorkas committed Jun 30, 2011
1 parent 15af79a commit 1b3f1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h1>Demo of Google Event Tracking jQuery Plugin</h1>
<p><a href="http://joakim-westerlund.se/" data-jaet-report-category="DemoCategory" data-jaet-report-action="label-home">Home</a></p>
<p><a href="http://devcorner.mynewsdesk.com/" data-jaet-report-category="DemoCategory" data-jaet-report-label="label-blog">Blog</a></p>
</nav>
<div id="my-defined-data-attributes" data-cat="category" data-act="action">
<div id="my-defined-data-attributes" data-cat="category" data-act="action with space and åäö">
This is with custom data attributes
</div>
<div id="tracked">
Expand Down
4 changes: 2 additions & 2 deletions jquery.analyticseventtracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
},
getEventValue: function(value,elm){
if($.isFunction(value)){
return value.call(elm);
return encodeString(value.call(elm));
}else{
return value;
return encodeString(value);
}
},
reportCategory: function(){
Expand Down

0 comments on commit 1b3f1f9

Please sign in to comment.