           "relationships" => relationships
         }
       }
-      id = json_response(conn, 201)["data"]["id"]
-
-      assert_received {:track, id, "Signed Up", %{}}
+      id = json_response(conn, 201)["data"]["id"] |> String.to_integer
+      assert_received {:track, ^id, "Signed Up", %{}}
     end
 
     test "does not create resource and renders errors when data is invalid", %{conn: conn} do

        |> authenticate(user)
        |> put(path, params)

      id = json_response(conn, 200)["data"]["id"]
      assert_received {:identify, id, attrs}
      assert_received {:track, id, "Updated Profile", %{}}
    end

    test "does not update when authorized as different user", %{conn: conn} do

    end

    test "tracks authentication & update profile events in Segment", %{conn: conn} do
      user = insert(:user, email: "original@mail.com")
      attrs = Map.put(@valid_attrs, :password, "password")

      params = %{
