{"id":149,"date":"2022-10-23T14:47:00","date_gmt":"2022-10-23T05:47:00","guid":{"rendered":"http:\/\/52.196.21.54.nip.io\/techblog\/?p=149"},"modified":"2022-10-13T17:39:52","modified_gmt":"2022-10-13T08:39:52","slug":"google%e3%82%a2%e3%83%8a%e3%83%aa%e3%83%86%e3%82%a3%e3%82%af%e3%82%b9%e3%81%a7%e3%82%b3%e3%83%b3%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%8c%e5%8f%96%e3%82%8c%e3%81%aa%e3%81%8f%e3%81%aa","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2022\/10\/23\/149\/","title":{"rendered":"Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u3067\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53d6\u308c\u306a\u304f\u306a\u3063\u305fContact Form 7\u3092\u5fa9\u6d3b\u3059\u308b"},"content":{"rendered":"\n<p>\u53e4\u3044\u30b5\u30a4\u30c8\u3067Contact Form 7\u304c\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308b\u3002<br>\u3088\u304f\u898b\u308b\u3068\u300c\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u300d\u306b\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>on_sent_ok: \"ga( 'send', 'event', '\u30ab\u30c6\u30b4\u30ea', '\u30a2\u30af\u30b7\u30e7\u30f3', '\u30e9\u30d9\u30eb' );\"<\/code><\/pre>\n\n\n\n<p>\u3069\u3046\u3084\u3089Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u3067\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a08\u6e2c\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001<code>on_sent_ok<\/code>\u3084<code>on_submit<\/code>\u306f\u3059\u3067\u306b\u5ec3\u6b62\u3055\u308c\u3066\u304a\u308a\u3001\u6a5f\u80fd\u3057\u3066\u3044\u306a\u3044\u3002<br>Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u306e\u30b3\u30fc\u30c9\u81ea\u4f53\u3082analytics.js\u304b\u3089gtag.js\u306b\u306a\u308a\u3001\u3044\u308d\u3044\u308d\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u3064\u3044\u3067\u306b\u4fee\u6b63\u3057\u3066\u3044\u304f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u73fe\u5728\u300c\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u300d\u306bJava Script\u3092\u66f8\u304f\u4e8b\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u30b5\u30a4\u30c8\u306e\u30bd\u30fc\u30b9\u306b\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\ndocument.addEventListener( 'wpcf7mailsent', function ( event ) {\n    gtag( 'event', '\u30a2\u30af\u30b7\u30e7\u30f3', {\n        'event_category': '\u30ab\u30c6\u30b4\u30ea',\n        'event_label': '\u30e9\u30d9\u30eb'\n    } );\n}, false );\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p><code>wpcf7mailsent<\/code>\u3067\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u6642\u306b\u5b9f\u884c\u3067\u304d\u308b\u3002<br>GA4\u3067\u3082\u554f\u984c\u306a\u304f\u4f7f\u7528\u53ef\u80fd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/contactform7.com\/ja\/tracking-form-submissions-with-google-analytics\/\" data-type=\"URL\" data-id=\"https:\/\/contactform7.com\/ja\/tracking-form-submissions-with-google-analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3092 Google Analytics \u3067\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3059\u308b | Contact Form 7 [\u65e5\u672c\u8a9e]<\/a><\/li><li><a href=\"https:\/\/contactform7.com\/ja\/2017\/06\/07\/on-sent-ok-is-deprecated\/\" data-type=\"URL\" data-id=\"https:\/\/contactform7.com\/ja\/2017\/06\/07\/on-sent-ok-is-deprecated\/\" target=\"_blank\" rel=\"noreferrer noopener\">on_sent_ok \u306f\u5ec3\u6b62\u3055\u308c\u307e\u3059 | Contact Form 7 [\u65e5\u672c\u8a9e]<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"\u53e4\u3044\u30b5\u30a4\u30c8\u3067Contact Form 7\u304c\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u3088\u304f\u898b\u308b\u3068\u300c\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u300d\u306b\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u3002 \u3069\u3046\u3084\u3089Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u3067\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a08\u6e2c\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001on_sent [&hellip;]","protected":false},"author":1,"featured_media":153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[47],"tags":[57,58,56,52,10],"class_list":["post-149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","tag-contact-form-7","tag-google-analytics","tag-javascript","tag-wordpress","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2022\/10\/analysis-g69b597429_1920.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":3,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/149\/revisions\/154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/153"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}