Slide 1

Slide 1 text

.BUPNPΛ࢖ͬͯΈͨ 1PUBUPUJQT5JQIBJOF

Slide 2

Slide 2 text

5JQIBJOFʢςΟϑΣϯʣ ‣ "OESPJEΤϯδχΞ ‣ ϝυϐΞגࣜձࣾʢLBLBSJʣ

Slide 3

Slide 3 text

‣ ղੳϓϥοτϑΥʔϜʢ(PPHMF"OBMZUJDTΈ͍ͨʣ ‣ ΦʔϓϯιʔεɹˠɹHJUIVCDPNNBUPNPPSH ‣ (%13Λ९क͍ͯ͠Δ͔Β&6ͰΑ͘࢖ΘΕ͍ͯΔ

Slide 4

Slide 4 text

̏ͭͷόʔδϣϯ ‣ ༗ྉ ‣ ࢖͍΍͍͢ ‣ &6ͷαʔόʔ ‣ ແྉ ‣ ηοτΞοϓ͕ਏ͍ ‣ ࣗ෼ͷαʔόʔ ‣ ແྉ ‣ ࢖͍΍͍͢ ‣ ʁ

Slide 5

Slide 5 text

͕࣌ؒͳ͍͔Β ࠓճ͸$MPVEʹ͢Δ😇

Slide 6

Slide 6 text

4FUVQ 1⃣ొ࿥ ‣ ϝΞυɿϢʔβʔ໊ʹͳΔɹ ⚠Ϣʔβʔ໊͸ޙͰมߋෆՄ ‣ υϝΠϯ໊ɿࠓճ͸ద౰ʹ UBIJBGSʹ͢Δ

Slide 7

Slide 7 text

4FUVQ dependencies { implementation "com.github.matomo-org:matomo-sdk-android:4.1.4" } repositories { maven { url 'https://jitpack.io' } } IUUQTHJUIVCDPNNBUPNPPSHNBUPNPTELBOESPJE 2⃣%FQFOEFODZ௥Ճ

Slide 8

Slide 8 text

4FUVQ .BUPNP"QQMJDBUJPOΛܧঝ͢Δ ΋͘͠͸ 5SBDLFSͷγϯάϧτϯΠϯελϯεΛ࡞Δ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ 3⃣ॳظԽ

Slide 9

Slide 9 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.extra.MatomoApplication // ΞϓϦͷApplication()Λ্ॻ͖ class MySuperApplication : Application() { override fun onCreate() { super.onCreate() // Dagger΍TimberͳͲ৭ʑॳظԽ } }

Slide 10

Slide 10 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.extra.MatomoApplication // ΞϓϦͷApplication()Λ্ॻ͖ class MySuperApplication : MatomoApplication() { override fun onCreate() { super.onCreate() // Dagger΍TimberͳͲ৭ʑॳظԽ } }

Slide 11

Slide 11 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.TrackerBuilder class MySuperApplication : MatomoApplication() { // … override fun onCreateTrackerConfig(): TrackerBuilder { return TrackerBuilder.createDefault( // apiUrl: "${μογϡϘʔυͷURL}/matomo.php" "https://tahia910.matomo.cloud/matomo.php", // sideId: ʮઃఆʯ → ʮ΢ΣϒαΠτʯ → ʮ؅ཧʯͰ֬ೝͰ͖Δ 1 ) } }

Slide 12

Slide 12 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.TrackerBuilder class MySuperApplication : MatomoApplication() { // … override fun onCreateTrackerConfig(): TrackerBuilder { return TrackerBuilder.createDefault( // apiUrl: "${μογϡϘʔυͷURL}/matomo.php" "https://tahia910.matomo.cloud/matomo.php", // sideId: ʮઃఆʯ → ʮ΢ΣϒαΠτʯ → ʮ؅ཧʯͰ֬ೝͰ͖Δ 1 ) } }

Slide 13

Slide 13 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.TrackerBuilder class MySuperApplication : MatomoApplication() { // … override fun onCreateTrackerConfig(): TrackerBuilder { return TrackerBuilder.createDefault( // apiUrl: "${μογϡϘʔυͷURL}/matomo.php" "https://tahia910.matomo.cloud/matomo.php", // siteId: ʮઃఆʯ → ʮ΢ΣϒαΠτʯ → ʮ؅ཧʯͰ֬ೝͰ͖Δ 1 ) } }

Slide 14

Slide 14 text

4FUVQ 3⃣ॳظԽ.BUPNP"QQMJDBUJPOΛܧঝ͢Δ import org.matomo.sdk.TrackerBuilder class MySuperApplication : MatomoApplication() { // … override fun onCreateTrackerConfig(): TrackerBuilder { return TrackerBuilder.createDefault( // apiUrl: "${μογϡϘʔυͷURL}/matomo.php" "https://tahia910.matomo.cloud/matomo.php", // siteId: ʮઃఆʯ → ʮ΢ΣϒαΠτʯ → ʮ؅ཧʯͰ֬ೝͰ͖Δ 1 ) } }

Slide 15

Slide 15 text

4FUVQ 4⃣ΠϕϯτΛૹ৴͢Δ import org.matomo.sdk.extra.MatomoApplication class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val tracker = (application as MatomoApplication).tracker //… } }

Slide 16

Slide 16 text

4FUVQ 4⃣ΠϕϯτΛૹ৴͢Δ import org.matomo.sdk.extra.TrackHelper class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val tracker = (application as MatomoApplication).tracker TrackHelper.track() .screen("/main_activity") .title("MainActivity") .with(tracker) } }

Slide 17

Slide 17 text

݁Ռ🎉 🙈

Slide 18

Slide 18 text

ϞόΠϧΞϓϦͰ؂ࢹͰ͖Δʂ

Slide 19

Slide 19 text

1SPT$POT ‣ ηΩϡϦςΟੑɺϓϥΠόγʔॏࢹ͸޷ҹ৅ ‣ ແྉͰ࢖͑ΔɺσʔλετϨʔδ੍ݶແ͠ ‣ ΧελϚΠζੑ

Slide 20

Slide 20 text

1SPT$POT ‣ هࣄͳͲࢀߟ͕গͳ͍😥 ‣ ແྉ൛͸αʔόʔαΠυͷ஌͕ࣝඞཁ ‣ ೔ຊޠ༁͕த్൒୺ʁX

Slide 21

Slide 21 text

ࢀߟ ‣ NBUPNPMBOHVBHFLPUMJO(JUIVCݕࡧ😇 ‣ .BUPNP%FWFMPQFS%PD ‣ ඇΤϯδχΞͷͨΊͷઆ໌ಈըʢʁʂʣ

Slide 22

Slide 22 text

5IBOLZPV 👋 !UBIJB