Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction_of_GoogleAnalytics_with_R

bk
March 06, 2021

 Introduction_of_GoogleAnalytics_with_R

bk

March 06, 2021
Tweet

More Decks by bk

Other Decks in Programming

Transcript

  1. ର৅ͱ໨త ର৅ࢹௌऀ w (PPHMF"OBMZUJDTΛ஌Β ͳ͍ w 8FCʹؔΘΔۀ຿͕͋Δ w ϒϩάΛॻ͍͍ͯΔ ໨త

    w ෼ੳͷσʔλιʔεͱ͠ ͯ(PPHMF"OBMZUJDTʹ Αͬͯऩूͨ͠σʔλΛ ௥Ճͯ͠΋Β͏ ࿩͞ͳ͍͜ͱ w (6*Ͱͷૢ࡞ํ๏ w طଘͷ (PPHMF"OBMZUJDTܥ3 ύοέʔδ w 3ݴޠͷ͜ͱ 4
  2. (PPHMF"OBMZUJDTͱ͸ Ϣʔβʔ͸Ͳ͔͜Βདྷͨͷ͔ʁ FYݕࡧαΠτ ϦϯΫ 4/4 ϢʔβʔͷσόΠε͸Կ͔ʁ FYσεΫτοϓ ϞόΠϧ λϒϨοτ ϦϐʔτϢʔβʔͷׂ߹͸ʁ

    ભҠݩʹΑͬͯϢʔβʔͷظ଴ ʹԠ͑ΒΕ͍ͯΔ͔෼ੳ Ͳ͏ͨ͠ΒϢʔβʔ͕ఆணͯ͘͠ ΕΔͷ͔෼ੳ ಛఆͷσόΠεͰૢ࡞΍ಡΈऔΓ ͕೉͘͠ͳ͍ͬͯͳ͍͔֬ೝ 10
  3. #JH2VFSZ࿈ܞखॱ  ("؅ཧը໘ͷϓϩύςΟ΁  #JH2VFSZͷϦϯΫઃఆ  ࿈ܞ͢ΔϓϩδΣΫτΛબ୒  ࿈ܞස౓Λબ୒ʢEBJMZ TUSFBNJOHʣ

     ઃఆ಺༰Λ֬ೝܾͯ͠ఆ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ IUUQTXXXNBSLFUFDIMBCPDPNHBBQQXFCQSPQFSUZUPCJHRVFSZ 17
  4. FWFOU@OBNF͕FWFOUͷछྨɺFWFOU@QBSBNT͕FWFOUͷৄࡉΛද͍ͯ͠Δɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ga_session_id ga_session_number “ϖʔδλΠτϧ” “https://xxxxx”

    NULL NULL NULL NULL 12345 1 event_params. value.string_value event_params. value.int_value ɾɾɾ ɾɾɾ ɾɾɾ page_view, scroll, clickͳͲ event_name page_view, scroll, clickͳͲ Ϣʔβʔ͕ԿΛͨ͠ͷ͔ɻ 8FCͱΞϓϦͰࣗಈతʹऩू͞ΕΔ߲໨͕ҟͳ ΔͷͰӈͷެࣜϖʔδΛ֬ೝɻ https://support.google.com/analytics/answer/9234069 23
  5. FWFOU@OBNF͕FWFOUͷछྨɺFWFOU@QBSBNT͕FWFOUͷৄࡉΛද͍ͯ͠Δɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ga_session_id ga_session_number “ϖʔδλΠτϧ” “https://xxxxx”

    NULL NULL NULL NULL 12345 1 event_params. value.int_value ɾɾɾ ɾɾɾ ɾɾɾ page_view, scroll, clickͳͲ event_params.key page_title page_location “ϖʔδλΠτϧ” “https://xxxxx” NULL NULL event_params. value.int_value QBHF@UJUMF΍QBHF@MPDBUJPOͷΑ͏ͳจࣈྻΛ஋ʹऔΔม਺͸ɺ ஋͕ʮTUSJOH@WBMVFʯʹ֨ೲ͞ΕΔɻ event_params. value.string_value 24
  6. FWFOU@OBNF͕FWFOUͷछྨɺFWFOU@QBSBNT͕FWFOUͷৄࡉΛද͍ͯ͠Δɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ga_session_id ga_session_number “ϖʔδλΠτϧ” “https://xxxxx”

    NULL NULL NULL NULL 12345 1 event_params. value.string_value ɾɾɾ ɾɾɾ ɾɾɾ page_view, scroll, clickͳͲ event_params.key ga_session_id ga_session_number NULL NULL 12345 1 event_params. value.string_value event_params. value.int_value HB@TFTTJPO@JE΍HB@TFTTJPO@OVNCFSͷΑ͏ͳ੔਺Λ஋ʹऔΔม਺͸ɺ஋͕ ʮJOU@WBMVFʯʹ֨ೲ͞ΕΔɻଞʹʮqPBU@WBMVFʯ΍ʮEPVCMF@WBMVFʯ΋ଘࡏ͢Δɻ 25
  7. FWFOU@OBNF͕WJFX@TFBSDI@SFTVMUTʢαΠτ಺ݕࡧ݁Ռʣͷ৔߹ɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ɾɾɾ search_term “Search Result:XYZ”

    “https://xxxxx” ɾɾɾ “XYZ” NULL NULL ɾɾɾ NULL event_params. value.string_value event_params. value.int_value unique_search_term NULL 1.0 view_search_results 26
  8. FWFOU@OBNF͕WJFX@TFBSDI@SFTVMUTʢαΠτ಺ݕࡧ݁Ռʣͷ৔߹ɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ɾɾɾ search_term “Search Result:XYZ”

    “https://xxxxx” ɾɾɾ “XYZ” NULL NULL ɾɾɾ NULL event_params. value.string_value event_params. value.int_value unique_search_term NULL 1.0 view_search_results Ϣʔβʔ͕αΠτ಺ݕࡧΛͨ͠ event_name view_search_results 27
  9. FWFOU@OBNF͕WJFX@TFBSDI@SFTVMUTʢαΠτ಺ݕࡧ݁Ռʣͷ৔߹ɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ɾɾɾ search_term “Search Result:XYZ”

    “https://xxxxx” ɾɾɾ “XYZ” NULL NULL ɾɾɾ NULL event_params. value.string_value event_params. value.int_value unique_search_term NULL 1.0 view_search_results αΠτ಺Ͱݕࡧ͞Εͨจࣈྻ event_params.key event_params. value.string_value event_params. value.int_value 28
  10. FWFOU@OBNF͕WJFX@TFBSDI@SFTVMUTʢαΠτ಺ݕࡧ݁Ռʣͷ৔߹ɻ #JH2VFSZ࿈ܞσʔλʹ͍ͭͯ event_name event_params.key page_title page_location ɾɾɾ search_term “Search Result:XYZ”

    “https://xxxxx” ɾɾɾ “XYZ” NULL NULL ɾɾɾ NULL event_params. value.string_value event_params. value.int_value unique_search_term NULL 1.0 view_search_results ౓͔͠ݕࡧ͞Ε͍ͯͳ͍จࣈྻ͕Ͳ͏͔ʁ event_params.key event_params. value.string_value event_params. value.int_value 29
  11. 3Ͱूܭͯ͠ΈΔ event_name event_params.key ɾɾɾ ga_session_id ɾɾɾ 12345 “99999” event_params. value.int_value

    user_pseudo_id ɾɾɾ ผͷϢʔβʔʹಉ͡HB@TFTTJPO@JE͕ৼΒΕΔ͜ͱ͕͋Δ ͜ΕͷϢχʔΫ਺ΛΧ΢ϯτ͢Ε͹ྑ͍ʁ 34
  12. 3Ͱूܭͯ͠ΈΔ event_name event_params.key ɾɾɾ ga_session_id ɾɾɾ 12345 “99999” event_params. value.int_value

    user_pseudo_id ɾɾɾ 37 ूܭखॱ ֊૚ΛͦΖ͑ͨσʔλϑϨʔϜΛ࡞੒ FWFOU@OBNFΛzTFTTJPO@TUBSUzʹߜΔʢ("͸TFTTJPO@TUBSU͔Βηογϣϯ਺Λूܭ͍ͯ͠Δ ʣ HB@TFTTJPO@JEͱVTFS@QTFVEP@JEΛ݁߹ͯ͠ηογϣϯJEΛ࡞੒ EQMZSΛ༻͍ͯ೔෇୯ҐͰηογϣϯJEͷϢχʔΫ਺Λूܭ *https://support.google.com/analytics/answer/9191807?hl=ja