Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit c26bb4c

Browse files
committed
-
1 parent f232a41 commit c26bb4c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

GAJavaScriptTracker.podspec

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Pod::Spec.new do |s|
2+
s.name = "GAJavaScriptTracker"
3+
s.version = "0.0.1"
4+
s.summary = "Objective-C Cocoa Wrapper for javascript google analytics tracking on OSX."
5+
s.homepage = "https://github.com/MacLabs/GAJavaScriptTracker"
6+
s.license = 'LICENCE*.*'
7+
s.author = { "Dominik Pich" => "Dominik@pich.info" }
8+
s.source = { :git => "https://github.com/MacLabs/GAJavaScriptTracker.git", :tag => "0.0.1" }
9+
s.platform = :osx
10+
s.source_files = 'GAJavaScriptTracker/**/*.{h,m}'
11+
# s.exclude_files = 'Classes/Exclude'
12+
s.framework = 'Webkit'
13+
s.public_header_files = 'GAJavaScriptTracker/**/*.h'
14+
s.requires_arc = true
15+
end

GAJavaScriptTracker/GAJavaScriptTracker.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ - (BOOL)trackEvent:(NSString *)category
205205

206206
id js;
207207
if(label && value>=0) {
208-
js = [NSString stringWithFormat:@"_gaq.push(['_trackEvent', '%@', '%@', '%@', %d])", category, action, label, value];
208+
js = [NSString stringWithFormat:@"_gaq.push(['_trackEvent', '%@', '%@', '%@', %ld])", category, action, label, (long)value];
209209
}
210210
else if(label) {
211211
js = [NSString stringWithFormat:@"_gaq.push(['_trackEvent', '%@', '%@', '%@'])", category, action, label];

0 commit comments

Comments
 (0)